I\'m using MoQ to test some controllers I have. I\'m not able to set the expectations. This is the code I have:
In the following code why does mockTest.ToString() return Null? EDIT: Added comment into example code to show how to fix the problem.
Is it possible to use Moq to mock an object that implements an interface and abstract class? I.e.: public class MyCla开发者_运维问答ss: SomeAbstractClass, IMyClass
or can the class be implementing an abs开发者_如何学JAVAtract class also?To mock a type, it must either be an interface (this is also called being pure virtual) or have virtual members (abstract membe
Say I have a method A.Do(Arg arg) which assigns some properties of arg (class Arg), let say it sets arg.Prop1 = \"done\".And I\'m testing a void method B.Do(void):
In RhinoMocks or Moq, can properties on an object be set before the constructor is 开发者_Go百科called?
I\'m starting to build up Unit Tests for a project we have. We\'ve decided upon开发者_开发知识库 Moq to assist with the \'Mocking\' of the repositorys as we dont want to run the tests against the live
I don\'t have a lot of experience with the factory pattern and I\'ve come across a scenario where I believe it is necessary but I\'m not sure the I\'ve implemented the pattern correctly and I\'m conce
I\'d like to use a mocking framework as well as an IOC framework with my latest project, based on subsonic 3 (ActiveRecord) and ASP.NET MVC.
Quite new to this mocking thing, I have a couple of questions. Correct me if I\'m wron开发者_Python百科g: