Exemple #1
0
        public void GetProperty()
        {
            _implementationMock.Expect(mock => mock.GetProperty(_propertyFake)).Return(12);
            _implementationMock.Replay();

            Assert.That(_instance.GetProperty(_propertyFake), Is.EqualTo(12));
            _implementationMock.VerifyAllExpectations();
        }
Exemple #2
0
 public void GetProperty()
 {
     _instance.String = "hoo";
     Assert.That(_instance.GetProperty("String"), Is.EqualTo("hoo"));
 }