public Invocation() { this.looseMock = new ThingMock(MockBehavior.Loose); this.strictMock = new ThingMock(); this.strictMock.When(x => x.IntProperty).Return(42); this.strictMock.When(x => x.VoidNoArgMethod()); this.strictMock.When(x => x.IntNoArgMethod()).Return(42); this.strictMock.When(x => x.IntSingleArgMethod(It.IsAny <float>())).Return(42); this.strictMock.When(x => x.IntMultiArgMethod(It.IsAny <float>(), It.IsAny <string>(), It.IsAny <int>(), It.IsAny <double>())).Return(42); }
public Specification() { this.mock = new ThingMock(); this.whenContinuation = this.mock.When(x => x.IntProperty); }
public Verification() { this.mock = new ThingMock(MockBehavior.Loose); this.verifyContinuation = this.mock.Verify(x => x.IntProperty); }
public Application() { this.mock = new ThingMock(MockBehavior.Loose); }