Moq is a strongly typed and minimalistic mocking framework for .NET.
Consider a method in a .NET assembly: public static string GetSecurityContextUserName() { //extract the username from request string sUser = HttpContext.Current.…
c# unit-testing mocking moqI'm tring to use a lambda with a multiple-params function but Moq throws this exception at runtime when I attempt …
c# wpf unit-testing moq ivalueconverterI have used IConfigurationRoute to access a directory like this. if (type == "error") directory = _config.GetValue<string>("Directories:…
c# unit-testing asp.net-core moq xunit.netI read the question at What is the purpose of Verifiable() in Moq? and have this question in my mind. …
unit-testing moqI am trying to verify a parameter that is a class. The code being tested is fine. The bug is …
c# .net unit-testing moqIn the past, I have only used Rhino Mocks, with the typical strict mock. I am now working with Moq …
c# .net unit-testing mocking moqI need to test the following method: CreateOutput(IWriter writer) { writer.Write(type); writer.Write(id); writer.Write(sender); // many …
c# unit-testing nunit moq sequentialwhat I want to do is construct a moq for I1 - which is fine ... however in the course of …
unit-testing inheritance interface moq