I have following class: public class PairOfDice { private Dice d1,d2; public int Value { get { return d1.Value + d2.Value; }
Oook, I\'m wanting to mock a callback that I know my service will call. For example: public interface ITestMe { void TestMethod(Action<int> callback); }
Please help this Linq newbie! I\'m creating a list inside my class under test, and I would like to use Moq to check the results.
I just downloaded the latest release of the source code to the Microsof开发者_JAVA百科t Enterprise Library.When I tried to build the solution in Visual Studio 2010, I get the following error:
I’m about to start work on an OpenRasta project (an xml over http web service). OpenRasta looks great but unfortunately worked examples seem few and far between on the internet. Looking at the test s
I have a class that does some retrieving of contents, and it has a method that requires some inputs (filters) before retrieving it. One of the \"input\" calls another method, which basically returning
I have set a test using Moq 3.0. I need to test a method that will change some value in that database. I am using ASP.NET MVC so I want to test my controller.
I have a mock t开发者_StackOverflowhat i have setup like this.I need to return the same value that was passed in to .CreatePersonName
I have a class that constructs a new object to add to the internal state of an object I am mocking... something like
Let\'s say we are testing a class C which has 2 methods M1 and M2 where M1 calls M2 when executed. Testing M2 is ok, but how can we test M1? The difficulty is that we need to mock M2 if I\'m not misu