Closed 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 ArticleCreated Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCommented Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCommented Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCommented Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCommented Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCommented Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleClosed Unassigned: Mock Call 8 arguments [13]
I'm trying to use the Mock<>.Setup().Calls() with a function that has 8 arguments. It seems that the Tuple has a limit of 7 and there is a special case for 7+.The line Foq.fs#263_let ci =...
View ArticleCreated Unassigned: Calls to generic methods support [14]
Repro from Yan Cui: https://gist.github.com/theburningmonk/438ebe15b99ffd635da2public interface IDynamoDataAccessLayer{ void Save<T>(T entity, string config = null); void Save2<T>(T...
View ArticleEdited Unassigned: Calls to generic methods support [14]
Repro from Yan Cui: https://gist.github.com/theburningmonk/438ebe15b99ffd635da2 public interface IDynamoDataAccessLayer{ void Save<T>(T entity, string config = null); void Save2<T>(T...
View Article