public void ListeDesUETest() { UE monUE1 = new UE("Info"); UE monUE2 = new UE("Methodologie"); Semestre c = new Semestre(); c.AjouterUE(monUE1); c.AjouterUE(monUE2); Assert.AreEqual(2, c.ListeDesUE().Length); Assert.AreEqual("Info", c.ListeDesUE()[0].Nom); Assert.AreEqual(0, c.ListeDesUE()[1].Coefficient); // Assert.Fail(); }
public void AjouterUETest() { Semestre c = new Semestre(); UE monUE = new UE("Info"); c.AjouterUE(monUE); UE[] tabUE = c.ListeDesUE(); Assert.AreEqual(tabUE[0].Nom, "Info"); // Assert.Fail(); }