public void TestChoralInstrumentConstructor_InitialzesFieldInstrumentNameCorrectly() { //act ChoralInstrument myChoralInstrument; //arrange myChoralInstrument = new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: false, isIncludedInChoralScore: true); //assert Assert.AreEqual("oboe", myChoralInstrument.InstrumentName); }
public void TestChoralInstrumentConstructor_InitialzesFieldIsIncludedInChoralScoreCorrectly() { //act ChoralInstrument myChoralInstrument; //arrange myChoralInstrument = new ChoralInstrument("Oboe", false, true); //assert Assert.AreEqual(true, myChoralInstrument.IsIncludedInChoralScore); }
public void TestChoralInstrumentConstructor_InitialzesFieldNumberOfTimesUsedAsZero() { //act ChoralInstrument myChoralInstrument; //arrange myChoralInstrument = new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: true, isIncludedInChoralScore: false); //assert Assert.AreEqual(0, myChoralInstrument.NumberOfTimesUsed); }
public void TestChoralInstrumentConstructor_InitialzesFieldApprovedAsTrue() { //act ChoralInstrument myChoralInstrument; //arrange myChoralInstrument = new ChoralInstrument(instrumentName: "Oboe", createdByAdministrator: true, isIncludedInChoralScore: false); //assert Assert.AreEqual(true, myChoralInstrument.Approved); }