예제 #1
0
        public void GetEvaluationFor_ThrowsExceptionForUnknownActivity()
        {
            Pupil p = new Pupil("ghis", 20);

            var evaluation = p.GetEvaluationFor("env dev");
            Assert.AreEqual('d', evaluation);
        }
예제 #2
0
파일: UnitTest1.cs 프로젝트: kalypsoo/c-
        public void GetEvaluationFor_ThrowException()
        {
            //AAA

            Pupil p = new Pupil("etu", 20, 1);
            var evaluation = p.GetEvaluationFor("env dev");
            Assert.AreEqual('d', evaluation);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
파일: UnitTest1.cs 프로젝트: kalypsoo/c-
        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);
        }
예제 #6
0
        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);
        }