public void UsingStubsWithCustomPropertyValues() { MockRepository mocks = new MockRepository(); ISomeInterfaceWithProperties stub = mocks.Stub <ISomeInterfaceWithProperties>(); stub.Age = 10; //a stub actually implements standard properties Assert.AreEqual(10, stub.Age); }
public void UsingStubsWithProperties() { MockRepository mocks = new MockRepository(); ISomeInterfaceWithProperties stub = mocks.Stub <ISomeInterfaceWithProperties>(); stub.Age = 1; stub.Name = "Itamar"; Assert.AreEqual("Itamar", stub.Name); }