コード例 #1
0
 @Test
 public void higherThan89IsA() {
   String expectedResult = "A";
   String actualresult = ScoreAssigner.assignScore(90);
   assertEquals(expectedResult, actualresult);
 }
コード例 #2
0
 @Test
 public void lessThan60IsF() {
   String expectedResult = "F";
   String actualresult = ScoreAssigner.assignScore(59);
   assertEquals(expectedResult, actualresult);
 }
コード例 #3
0
 @Test
 public void higherThan69LessThan80IsC() {
   String expectedResult = "C";
   String actualresult = ScoreAssigner.assignScore(70);
   assertEquals(expectedResult, actualresult);
 }
コード例 #4
0
 @Test
 public void higherThan59LessThan70IsD() {
   String expectedResult = "D";
   String actualresult = ScoreAssigner.assignScore(60);
   assertEquals(expectedResult, actualresult);
 }
コード例 #5
0
 @Test
 public void higherThan79LessThan90IsB() {
   String expectedResult = "B";
   String actualresult = ScoreAssigner.assignScore(80);
   assertEquals(expectedResult, actualresult);
 }