Moq is a strongly typed and minimalistic mocking framework for .NET.
I have a unit test where I have to mock a non-virtual method that returns a bool type public class …
c# unit-testing moqI've got an interface which declares Task DoSomethingAsync(); I'm using MoqFramework for my tests: [TestMethod()] public async Task MyAsyncTest() { Mock&…
c# unit-testing task-parallel-library moqIs it possible to assign an out/ref parameter using Moq (3.0+)? I've looked at using Callback(), but Action<> …
c# parameters moq ref outI'm trying to mock a class, called UserInputEntity, which contains a property called ColumnNames: (it does contain other properties, I've …
c# c#-4.0 properties moqI have a method on an interface: string DoSomething(string whatever); I want to mock this with MOQ, so that …
c# mocking moqpublic void SubmitMessagesToQueue_OneMessage_SubmitSuccessfully() { var messageServiceClientMock = new Mock<IMessageServiceClient>(); var queueableMessage = CreateSingleQueueableMessage(); var message = queueableMessage[0]; var xml = …
c# unit-testing nunit moqI have a preexisting Interface... public interface ISomeInterface { void SomeMethod(); } and I've extended this intreface using a mixin... public static …
c# unit-testing mocking extension-methods moqI have some issues trying to wrap my code to be used in unit tests. The issues is this. I …
c# unit-testing moqI have been doing unit testing recently and I've successfully mocked various scenarios using MOQ framework and MS Test. I …
c# unit-testing mocking moq