Quantcast
Channel: foq Issue Tracker Rss Feed
Browsing all 29 articles
Browse latest View live
↧

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 Article


Commented 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 Article


Created 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 Article

Commented 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 Article

Edited 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 Article


Commented 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 Article

Edited 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 Article

Closed 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 Article


Closed 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 Article


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 Article

Closed 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 Article

Closed 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 Article

Closed 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 Article


Closed 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 Article

Closed 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 Article


Closed 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 Article

Closed 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 Article


Created 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

Commented 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

Commented 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
Browsing all 29 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>