public void Dispose_disposes_measure_sensor() { // Arrange, Act _sut.Dispose(); // Assert A.CallTo(() => _measureSensor.Dispose()) .MustHaveHappenedOnceExactly(); }
public void Dispose() { _timer?.Dispose(); _measureSensor?.Dispose(); }