コード例 #1
0
ファイル: OrchestraTests.cs プロジェクト: fotijr/MetroDom
        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
ファイル: OrchestraTests.cs プロジェクト: fotijr/MetroDom
        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
        }