Foq icon indicating copy to clipboard operation
Foq copied to clipboard

A unit testing framework for F#

Results 10 Foq issues
Sort by recently updated
recently updated
newest added

Update to website referenced in examples. Not sure why the additional changes are being highlighted (Might be a linter)

### Description Foq throws an exception if you try to mock a C# abstract class containing a virtual property with an internal setter. - Real-world example: https://github.com/Azure/azure-functions-durable-extension/blob/master/src/WebJobs.Extensions.DurableTask/DurableOrchestrationContextBase.cs. ### Repro steps...

### Description While mocking a type's member is super convenient, I found no way to mock a bare function, not hosted in any type. Or, at least, I was able...

### Description Building a mock for a member that returns a unit type results in a System.InvalidProgramException: "Common Language Runtime detected an invalid program." ### Repro steps Compile and run...

Created a new version with updated targets, so that package works well with latest versions of .NET SDK. This PR is a draft with two open questions: 1) Which targets...

### Description When using an internal type in a mock Foq can crash with incredibly confusing System.MethodAccessException errors. This can be fixed by either making the type public or adding...

### Description I want to mock behaviour of `HttpMessageHandler`, but cannot do it because of exceptions thrown by Foq. Is `Strict` mode I get `NotImplementedException` and in `Loose` mode I...

### Description When using `Moq` framework I usually create mocks and pass mocked objects to constructor of the object under test. Doing this I avoid repeating part of initialising logic:...

Currently, there are few options for mocking/faking libraries that can run on Xamarin Android. Most libraries like moq and fakeiteasy rely on Castle.Core, which does not have a build for...

Member functions mocked using `Foq.ResultBuilder.Calls` will throw `System.InvalidProgramException` when a _value type_ parameter is _inferred_ to be a _reference type_ argument. See the example below. I'm not sure there is...