I\'ve created an extension method for SqlCommand that allows some additional work before executing the command:
I\'m new to moq and setting up mocks so i could do with a little help. How do I mock up an SqlDataReader using Moq?
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a
Using Moq for generation of Stubs and Mocks in my unit tests, I have a case where I want to Verify that a method that takes a Delegate parameter is called. I don\'t care about the particular Delegate
I want to use Ninject to use in a non MVC ASP.NET 3.5 web application. Can someone write please what do I need to download from ninject home site and what steps I need to take (what ddls I need to re
Moq allows developers to mock protected members.I was looking for the same functionality in Rhino.Mocks but fa开发者_高级运维il to find it.
Given the following interface public interface ISomething { void DoMany(string[] strs); void DoManyRef(ref string[] strs);
Following is the code. create a class lib add the ref to NUnit framework 2.5.3.9345 and Moq.dll 4.0.0.0 and paste the following code. Try running it on my machine it throws
I have a function I want to Moq.The problem is that it takes 5 parameters.The framework only contains Action<T1,T2,T3,T4> and Moq\'s generic CallBack() only overloads Action and the four generic
I\'m brand new to Moq (using v 4) and am struggling a little with the documentation. What I\'m trying to do is to Moq a method that takes a byte array and returns an object. Something like: