public void TestOnTemperatureChangedCalled() { // arrange IThermometerReader r = mock.DynamicMock <IThermometerReader>(); Expect.Call(() => r.OnTemperatureChange(null, null)); mock.ReplayAll(); // act r.OnTemperatureChange(null, null); // assert mock.VerifyAll(); }