public void AddActivity(Activity a) { var taille = LstActivities.Count(); if (taille < Parametre.nbActivityMax) LstActivities.Add(a); else System.Console.Write("Seuil maximal d'activité atteind"); }
public void TestMethod2() { //AAA //1 Arrange => instancie Activity a = new Activity("env log", false); Pupil p2 = new Pupil("jade", 6); //2 Act => utiliser le système var eval = p2.getEvaluationFor("env log"); //3 Assert => on compare résultat obtenu et attendu Assert.AreEqual('T', eval); }
public void GetEvaluationFor_GetEvaluationFor() { //AAA //1. Arrange => on instancie Pupil p = new Pupil("Quentin", 10); Activity a = new Activity("env dev", true); //2. Act => on utilise le système p.AddActivity(a); p.AddEvaluation(a.Title, 'd'); //3. Assert => on compare le résultat obtenu et attendu var eval = p.GetEvaluationFor("env dev"); Assert.AreEqual('d', eval); }
public void AddActivity(Activity act) { LstActivities.Add(act); }
public void AddActivity(Activity act) { if (LstActivities.Count < Parameter.DIX) LstActivities.Add(act); }