I'm having difficulties to Mock Microsoft ILogger with Foq. module MockExample open Microsoft.Extensions.Logging open NUnit.Framework open Foq //ope ...
I'm having difficulties to Mock Microsoft ILogger with Foq. module MockExample open Microsoft.Extensions.Logging open NUnit.Framework open Foq //ope ...
I have written an Azure durable function in F# and am trying to write unit tests, following the guidelines at https://docs.microsoft.com/en-us/azure/a ...
I am using F# type definitions to prevent hard dependencies between my functions, for example output x : "4" Obviously this is quite contrived and ...
I am trying to use Foq to testing an interface with Foq. So far, all examples I have seen for this have been relatively simple, such as the followin ...
I wanted to mock an entityframwork DbSet using Foq. It goes something like: let patients = ([ Patient(Guid "00000000-0000-0000-0000-0000 ...
I am using F# and Foq to write unit tests for a C# project. I am trying to set up a mock of an interface whose method has an out parameter, and I hav ...
None of the Mock.Expect examples I've found use Times other than 0 or 1 (never, once). I modifed one of the existing tests from Foq.Usage.fsx to attem ...
I have an interface like this I try to mock like this I have a test like this The app.Create function calls the db.Set with an Async.AwaitTas ...