Example #1
0
        public void TestChoralInstrumentConstructor_InitialzesFieldInstrumentNameCorrectly()
        {
            //act
            ChoralInstrument myChoralInstrument;

            //arrange
            myChoralInstrument = new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: false, isIncludedInChoralScore: true);

            //assert
            Assert.AreEqual("oboe", myChoralInstrument.InstrumentName);
        }
Example #2
0
        public void TestChoralInstrumentConstructor_InitialzesFieldIsIncludedInChoralScoreCorrectly()
        {
            //act
            ChoralInstrument myChoralInstrument;

            //arrange
            myChoralInstrument = new ChoralInstrument("Oboe", false, true);

            //assert
            Assert.AreEqual(true, myChoralInstrument.IsIncludedInChoralScore);
        }
Example #3
0
        public void TestChoralInstrumentConstructor_InitialzesFieldNumberOfTimesUsedAsZero()
        {
            //act
            ChoralInstrument myChoralInstrument;

            //arrange
            myChoralInstrument =
                new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: true, isIncludedInChoralScore: false);

            //assert
            Assert.AreEqual(0, myChoralInstrument.NumberOfTimesUsed);
        }
Example #4
0
        public void TestChoralInstrumentConstructor_InitialzesFieldApprovedAsTrue()
        {
            //act
            ChoralInstrument myChoralInstrument;

            //arrange
            myChoralInstrument =
                new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: true, isIncludedInChoralScore: false);

            //assert
            Assert.AreEqual(true, myChoralInstrument.Approved);
        }