Created Unassigned: Collection was modified; enumeration operation may not...
Foq 1.4, rarely Mock.Verify() raises the following exception:```System.InvalidOperationException : Collection was modified; enumeration operation may not execute.at...
View ArticleCommented Unassigned: Collection was modified; enumeration operation may not...
Foq 1.4, rarely Mock.Verify() raises the following exception:```System.InvalidOperationException : Collection was modified; enumeration operation may not execute.at...
View ArticleCreated Unassigned: Returning a DU where a DU option is actually required...
You can see in the solution from [this repository](https://github.com/jjvdangelo/BlowingUpFoq) how returning a DU from a Mock on an interface that actually returns a DU option causes the test runner to...
View ArticleCommented Unassigned: Collection was modified; enumeration operation may not...
Foq 1.4, rarely Mock.Verify() raises the following exception:```System.InvalidOperationException : Collection was modified; enumeration operation may not execute.at...
View ArticleEdited Unassigned: Collection was modified; enumeration operation may not...
Foq 1.4, rarely Mock.Verify() raises the following exception:```System.InvalidOperationException : Collection was modified; enumeration operation may not execute.at...
View ArticleCommented Unassigned: Returning a DU where a DU option is actually required...
You can see in the solution from [this repository](https://github.com/jjvdangelo/BlowingUpFoq) how returning a DU from a Mock on an interface that actually returns a DU option causes the test runner to...
View ArticleEdited Unassigned: Returning a DU where a DU option is actually required...
You can see in the solution from [this repository](https://github.com/jjvdangelo/BlowingUpFoq) how returning a DU from a Mock on an interface that actually returns a DU option causes the test runner to...
View ArticleClosed Unassigned: Add support for Application quotations [5]
When I try and setup a partially applied member the toCall function throws NotSupportedException. For example:```type IDummy = abstract member Add : Int32 -> Int32 -> Int32let mock =...
View ArticleClosed Issue: Cannot create mock of a interface [2]
Foq 0.7~~~~~type IChannel = inherit IDisposable inherit IMessageConfirmer abstract QueueDeclare: Queue -> Queue abstract Publish: Exchange * RoutingKey * Persistent * Priority * TimeSpan option *...
View ArticleClosed Feature: Specify optional constructor arguments if the mocked type is...
It would be nice to have an overload in Foq's `Mock<T>` class for supplying optional constructor arguments if the mocked type is a class.The need for the additional overload emerged by...
View ArticleClosed Unassigned: Set default mock mode [7]
From Phil Trelford:_expose a global setting on Foq so you can specify your default preference? e.g. Foq.SetDefaultMode(MockMode.Strict)_
View ArticleClosed Unassigned: setting up a method that returns an Async [4]
Hi,I try to set up a mock using``` Mock<Interface>.With(fun y -> <@ y.DoIt (any()) --> async {()} @>)```This leads to a NotSupportedException being raised in the function toCall.How...
View ArticleClosed Unassigned: System.IO.FileLoadException (Updating Foq to 1.4) [8]
When I updated Foq to 1.4 I got the following exception:```System.IO.FileLoadException : Could not load file or assembly 'FSharp.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'...
View ArticleClosed Unassigned: System.MissingMethodException (Updating Foq to 1.4) [9]
The following assertion passes with Foq 1.0, and Foq 1.3, but fails when updating to Foq 1.4:```let mock = Mock<IMemberComparer>().Create()Assert.IsAssignableFrom<IMemberComparer>(mock)...
View ArticleClosed Unassigned: Collection was modified; enumeration operation may not...
Foq 1.4, rarely Mock.Verify() raises the following exception:```System.InvalidOperationException : Collection was modified; enumeration operation may not execute.at...
View ArticleClosed Unassigned: Make loose mocks throw for F# type return values with no...
From Vasily Kirichenko:_It's very confusing and just not natural that #foq can return nulls as values of #fsharp types. ==> Tests do not reflect reality.__I think #foq should always throw some...
View ArticleClosed Unassigned: Returning a DU where a DU option is actually required...
You can see in the solution from [this repository](https://github.com/jjvdangelo/BlowingUpFoq) how returning a DU from a Mock on an interface that actually returns a DU option causes the test runner to...
View ArticleCreated Unassigned: Complete support for byref arguments [12]
We are mocking Visual Studio SDK API which involves a lot of calls with byref arguments (both in and out). Using _SetupByName_ isn't enough since there might be multiple overloads, and these calls...
View ArticleCommented Unassigned: Complete support for byref arguments [12]
We are mocking Visual Studio SDK API which involves a lot of calls with byref arguments (both in and out). Using _SetupByName_ isn't enough since there might be multiple overloads, and these calls...
View ArticleCommented Unassigned: Complete support for byref arguments [12]
We are mocking Visual Studio SDK API which involves a lot of calls with byref arguments (both in and out). Using _SetupByName_ isn't enough since there might be multiple overloads, and these calls...
View Article