public void GetEvaluationFor_ThrowsExceptionForUnknownActivity() { Pupil p = new Pupil("ghis", 20); var evaluation = p.GetEvaluationFor("env dev"); Assert.AreEqual('d', evaluation); }
public void GetEvaluationFor_ThrowException() { //AAA Pupil p = new Pupil("etu", 20, 1); var evaluation = p.GetEvaluationFor("env dev"); Assert.AreEqual('d', evaluation); }
public void GetEvaluationFor_ThrowsExceptionForUnknowActivity() { //AAA //1. Arrange => on instancie Pupil p = new Pupil("Quentin", 10); //3. Assert => on compare le résultat obtenu et attendu var eval = p.GetEvaluationFor("env dev"); Assert.AreEqual('d', eval); }
public void TestMethod1() { Pupil p = new Pupil("ghis",20); Activity a = new Activity("env dev", false); p.addActivity(a); p.AddEvaluation("env dev", 'd'); var evaluation = p.GetEvaluationFor("env dev"); Assert.AreEqual('d', evaluation); }
public void TestMethod1() { //AAA Pupil etu2 = new Pupil("etu",20,1); //2. Acr ==> on utilise le systeme etu2.AddActivity(new Activity("env dev", true)); etu2.AddEvaluation("env dev", 'd'); //3 Assert ==> on compare résultat obtenu et attendu var evaluation = etu2.GetEvaluationFor("env dev"); Assert.AreEqual('d', evaluation); }
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); }