Inside a test I am creating multiple threads, to test racing conditions, I need the threads start at the same time, so far so good. But when I assert ...
Inside a test I am creating multiple threads, to test racing conditions, I need the threads start at the same time, so far so good. But when I assert ...
I feel like I have to be missing something that is obvious, or I am overcomplication what I am doing. I am attempting to test a method that contains s ...
I am arranging call for a method in a unit test like below Is 1 and 2 will be returned in sequence always or InSequence() chain is required? Will ...
I have a struct that I want to mock. In a more complex test I need several instances of this struct, each with it's own behavior. To facilitate this, ...
I am writing unit tests and I need to mock the out parameter of the one of the target method dependencies with the following signature: I am using ...
I moved the most frequently created mocks into extensions and helper classes to be able to reuse them in several tests. I was very surprised when it t ...
I'm using the MockingContainer<T> to automatically set up my dependencies. How do I assert that a property on one of those dependencies gets set ...
I have the following dependency tree MyFramework DataAccess Processor Processor.Tests Each assembly references on all of the ones above i ...
I have an Interface which has a property on another interface, I am trying to test the Main class. One of the test case is to validate the Handler ...
I am new at Just Mock, facing a problem to pass this method, need help to understand the issue. I have a following code that I want to test and fo ...
I'm developing a TDD test with C#, .NET Framework 4.7, Nunit 3.8.0 and JustMock Lite 2017.2.821.1. When I do this: I get the following exception: ...
I am using Telrik JustMock to mock in the unit testing. Locally it works well but while I try to integrate it with VSTS builds based on Asp.net build ...
I'm new in TDD developing and I've just started to do some tests with Nunit 3.7.1, Newtonsoft.Json version=10.0.3, JustMock Lite version 2016.2.426.1, ...
I am using JustMock and NServiceBus. I want to assert that following statement is executed once: so that's what I am using: Now I am mocking NS ...
I am using the free version of JustMock for writing the unit tests. I have am CustomApiController class which inherits system.web.Http.ApiController c ...
I'm using JustMock and Entity Framework to try to write unit tests for a service. In the service, I have this method: And I have a test: How do ...
I'm trying to use JustMock Lite to UnitTest a method that uses SqlConnection to call a stored proc. I obviously need to mock the database call. I have ...
I am new to JustMock mocking framework and I am trying to mock a private method. I am fully aware that unit testing a private method is a commonly bad ...
I am creating some unit tests for my ASP .NET MVC Controller class and I ran into some very strange errors: My controller code is below: My test c ...
In justmock we can return mocked instances instead of actual instances by Arranging the constructor call like but when I tried the same with UrlHel ...