public void ToStringTest() { UE e = new UE("Info"); e.AjouterModule("M3105", "Poo", 2); Assert.AreEqual(e.ToString(), "Info (2)"); }
public void ListeModuleTest() { UE e = new UE("Info"); e.AjouterModule("M1011", "Graphe", 2); Assert.AreEqual(e.ListeModule().Length, 1); //Assert.Fail(); }
public void AjouterModuleTest() { UE e = new UE("Info"); e.AjouterModule("M3105", "Poo", 2); Assert.AreEqual(e.ListeModule()[0].Nom, "Poo"); //Assert.Fail(); }
public void MoyenneTest() { UE e = new UE("Info"); e.AjouterModule("M3105", "Poo", 2); Note n = new Note(12, false); e.ListeModule()[0].AjouterExamen("11/12/20117", "Mr Ambart", 3, n); Assert.AreEqual(e.Moyenne(), 12); }
public void ListeModulesTest() { UE monUE1 = new UE("Info"); monUE1.AjouterModule("M3105", "Poo", 3); UE monUE2 = new UE("Methodologie"); monUE2.AjouterModule("M1015", "GestionSi", 2); Semestre c = new Semestre(); c.AjouterUE(monUE1); c.AjouterUE(monUE2); Assert.AreEqual(2, c.ListeModules().Length); Assert.AreEqual("Poo", c.ListeModules()[0].Nom); Assert.AreEqual(2, c.ListeModules()[1].Coefficient); //Assert.Fail(); }