Exemple #1
0
 public void ExC3_TestWithLargeNumber()
 {
     Assert.AreEqual("**Error**", ExC3.CalculateGrade(-400));
 }
Exemple #2
0
 public void ExC3_TestWithNegative()
 {
     Assert.AreEqual("**Error**", ExC3.CalculateGrade(-40));
 }
Exemple #3
0
        public void ExC3_TestForC()
        {
            int grade = 40;

            Assert.AreEqual("C", ExC3.CalculateGrade(grade));
        }
Exemple #4
0
        public void ExC3_TestForB()
        {
            int grade = 60;

            Assert.AreEqual("B", ExC3.CalculateGrade(grade));
        }
Exemple #5
0
        public void ExC3_TestForA()
        {
            int grade = 80;

            Assert.AreEqual("A", ExC3.CalculateGrade(grade));
        }
Exemple #6
0
        public void ExC3_TestWithZero()
        {
            int grade = 0;

            Assert.AreEqual("F", ExC3.CalculateGrade(grade));
        }