Esempio n. 1
0
        public void ChoralMusicSelection_MethodSetInstrumentParts()
        {
            //Arrange
            Contributor          composer = new Contributor(new Name("David", "", "Hass"), "Composer");
            ChoralMusicSelection myChoralMusicSelection
                = new ChoralMusicSelection("507f191e810c19729de860ea", "Blest Are They", composer, true);
            List <ChoralInstrumentPart> expectedInstrumentParts =
                new List <ChoralInstrumentPart>()
            {
                new ChoralInstrumentPart("Trombone", 2, true),
                new ChoralInstrumentPart("Flute", 3, true)
            };

            //Act
            List <ChoralInstrumentPart> instrumentParts =
                new List <ChoralInstrumentPart>()
            {
                new ChoralInstrumentPart("Trombone", 2, true),
                new ChoralInstrumentPart("Flute", 3, true)
            };

            myChoralMusicSelection.setInstrumentParts(instrumentParts);

            //Assert
            CollectionAssert.AreEqual(expectedInstrumentParts, myChoralMusicSelection.getInstrumentParts());
        }
Esempio n. 2
0
        public void ChoralMusicSelection_MethodSetInstrumentParts_ArgumentIsNull_ThrowsArgumentNullException()
        {
            //Arrange
            Contributor          composer = new Contributor(new Name("David", "", "Hass"), "Composer");
            ChoralMusicSelection myChoralMusicSelection
                = new ChoralMusicSelection("507f191e810c19729de860ea", "Blest Are They", composer, true);

            //Act
            myChoralMusicSelection.setInstrumentParts(null);
        }