예제 #1
0
        public void Start_ThrowsArgumentNullException_WithNullSong()
        {
            // Arrange
            var orchestra = new Orchestra(null);

            // Act
            var exception = Record.Exception(() => orchestra.Start(null));

            // Assert
            Assert.NotNull(exception);
            Assert.IsType <ArgumentNullException>(exception);
        }
예제 #2
0
        public void Start_IsSuccessful_WithNullInstruments()
        {
            // Arrange
            var orchestra = new Orchestra(null);
            var song      = new Song(Key.EMajor, new List <SongNote> {
                new SongNote(MetroDom.Core.Note.C, 500)
            });

            // Act
            orchestra.Start(song);

            // Assert
        }