コード例 #1
0
        public void ShouldCreateStrictInstanceOfInterfaceWithDefaultCtor()
        {
            Interaction i       = new Interaction();
            IMockable   fooMock = i.CreateStrictMock <IMockable>();

            Specify.That(fooMock).ShouldNotBeNull();
        }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void TestInitialize()
 {
     _mock     = new Mock <IMockable>();
     _instance = _mock.Object;
 }
コード例 #4
0
 public MyUnitTestableClass(IMockable foo)
 {
     // do stuff
 }