NSubstitute is a .NET mocking framework.
Most of the examples given in mocking framework website is to mock Interface. Let say NSubstitute that I'm currently using, …
c# unit-testing mocking nsubstituteI have an interface which I am mocking with 'NSubstitute' which contains properties that return concreate classes, that is the …
nsubstituteI want to verify that a method on my NSubstitute mock is called with a particular array argument. Say the …
c# nsubstituteSo EntityFramework 6 is a lot better testable then previous versions. And there are some nice examples on the internet for …
c# entity-framework dbcontext nsubstitute dbsetUsing NSubstitute, how do you mock an exception being thrown in a method returning a Task? Let's say our method …
c# .net asynchronous task nsubstituteI want to do mock extension method, but it does not work. How can this be done? public static class …
c# random mocking nsubstituteI'm about to take a decision about the mocking library for my next project. and because I'm new to those …
.net unit-testing tdd moq nsubstituteI am trying to verify that an asynchronous method was called with the correct parameters. However, I get the warning: "…
c# unit-testing asynchronous async-await nsubstituteWhen I run the following code: [Test] public async Task Can_Test_Update() { var response = await _controller.UpdateAsync(Guid.NewGuid()); …
c# asynchronous async-await nsubstituteI am having a class "Example" with a property "data" which has a private setter and I would like to …
c# private nsubstitute