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