public void OverrideMethodOnDynamicMock() { DynamicMock derivedMock = new DerivedMock(); IStuff derivedInstance = (IStuff)derivedMock.MockInstance; Assert.AreEqual(17, derivedInstance.Add(5, 12)); derivedMock.Verify(); }
public void OverrideMethodOnDynamicMock() { DynamicMock derivedMock = new DerivedMock(); IStuff derivedInstance = (IStuff)derivedMock.MockInstance; Assert.AreEqual( 17, derivedInstance.Add( 5, 12 ) ); derivedMock.Verify(); }