public void ShouldCreateStrictInstanceOfInterfaceWithDefaultCtor() { Interaction i = new Interaction(); IMockable fooMock = i.CreateStrictMock <IMockable>(); Specify.That(fooMock).ShouldNotBeNull(); }
public void TestInitialize() { _mock = new Mock <IMockable>(); _test = _mock.Object; _funcExpression = _mock.Expression(x => x.WithResponse(Any.Int)); _propGetExpression = _mock.Expression(x => x.Prop); _propSetExpression = (IMockable m) => m.Prop = Any.String; }
public void TestInitialize() { _mock = new Mock <IMockable>(); _instance = _mock.Object; }
public MyUnitTestableClass(IMockable foo) { // do stuff }