Moq is a strongly typed and minimalistic mocking framework for .NET.
Recently, I've begun to use Moq to unit test. I use Moq to mock out classes that I don't need …
c# unit-testing mocking moqNot sure how I can fix this, trying to do a unit test on the method "GetByTitle" Here are my …
c# nhibernate nunit resharper moqHow do I verify that method was NOT called in Moq? Does it have something like AssertWasNotCalled? UPDATE: Starting from …
c# .net moqThis is my controller: public class BlogController : Controller { private IDAO<Blog> _blogDAO; private readonly ILogger<BlogController> _…
c# unit-testing asp.net-core moq iloggerI am stuck at this point of code that I do not know how to mock: ConfigurationManager.AppSettings["User"]; I …
c# unit-testing moqI have an interface defined as interface IMath { AddNumbersBetween(int lowerVal, int upperVal); } I can setup a basic Moq for …
c# unit-testing moq[TestMethod] public void Home_Message_Display_Unknown_User_when_coockie_does_not_exist() { var context = new Mock<HttpContextBase>(); …
c# asp.net-mvc mocking moq httpcontextI'm doing some unit testing, and mocking some properties using Moq. Now, this is a Controller test (ASP.NET MVC 3). …
c# asp.net-mvc unit-testing controller moqI am writing a test that depends on the results of an extension method but I don't want a future …
c# mocking moq extension-methods