예제 #1
0
        public void Dispose_disposes_buzzer()
        {
            // Arrange, Act
            _sut.Dispose();

            // Assert
            A.CallTo(() => _buzzer.Dispose())
            .MustHaveHappenedOnceExactly();
        }
예제 #2
0
 public void Dispose()
 {
     _buzzer?.Dispose();
 }