Search code examples
How to unit test with ILogger in ASP.NET Core...


c#unit-testingasp.net-coremoqilogger

Read More
Verify BackgroundJob.Delete in Hangfire in mstest unit testing...


c#testingmoqhangfire

Read More
Why the method doesn't work, however the same algorithm in another method works?...


c#entity-frameworkunit-testingmoqreturn-value

Read More
Testing ValidationAttribute that overrides IsValid...


c#asp.net-mvcunit-testingmoqvalidationattribute

Read More
How do I mock controller context in my unit test so that my partial view to string function works?...


c#unit-testingmoqasp.net-mvc-5

Read More
How to mock MediatR to perform xUnit test for Web API Controller...


c#moqxunit.net-5fixtures

Read More
How to mock container.Resolve<Type>()...


c#moqioc-container

Read More
How do I use AutoFixture Attributes to get FakeTimeProvider reference when my SUT depends on TimePro...


c#moqxunit.netautofixture

Read More
How do I Moq a method that has an optional argument in its signature without explicitly specifying i...


c#unit-testingmoq

Read More
Moq verify property init...


c#.netunit-testingmoqxunit

Read More
Mocking EF DbContext with Moq...


c#unit-testingentity-framework-5moqdbcontext

Read More
Can I use moq Mock<MyClass> to mock a class, not an interface?...


c#unit-testingmoq

Read More
Moq to NSubstitute AddScoped...


c#unit-testingmoqnsubstitute

Read More
Test case fails...


c#.netmoqxunit

Read More
Why isn't my supplied predicate being matched when using Moq?...


c#.netmoqlinq-expressions

Read More
Mocking HttpClient in unit tests...


c#unit-testingmoq

Read More
Initializing internal variables with Moq in a unit test...


c#unit-testingmoqxunit

Read More
C# UnitTests Mock File ReadAllBytes throws System.IO.FileNotFoundException...


c#asp.netunit-testingmoqxunit

Read More
how do I mock sqlconnection or should I refactor the code?...


unit-testingado.netmoqxunitsqlconnection

Read More
Mock IMemoryCache with Moq throwing exception...


c#unit-testingasp.net-core.net-coremoq

Read More
Using Moq with a template method...


c#moq

Read More
How to mock an internal method of a class?...


.netunit-testingmoq

Read More
How to Mock EntityEntry in EF Core?...


unit-testingentity-framework-coremockingmoqef-core-8.0

Read More
While unit testing GetAsync, How to make an HttpResponseMessage returns an exception to be caught by...


c#moqdotnet-httpclient

Read More
How to use moq to verify that a similar object was passed in as argument?...


c#unit-testingmoq

Read More
Getting past entity framework BeginTransaction...


c#entity-frameworkunit-testingtestingmoq

Read More
Mocking Static Methods...


c#unit-testingmockingmoq

Read More
How can I simulate asynchronous LINQ queries with conditional logic in xUnit?...


c#linqunit-testingmoqxunit

Read More
Moq Verify() on a mocked HttpClientHandler can't access the Content object because it is dispose...


c#httpclientmoq

Read More
Expected invocation on the mock once, but was 0 times: With Moq...


c#moqxunit

Read More
BackNext