コード例 #1
0
 public void given_number_less_than_100_should_return_1()
 {
     Assert.AreEqual(1, CenturyFromYearConversor.ConvertYear(1));
     Assert.AreEqual(1, CenturyFromYearConversor.ConvertYear(10));
 }
コード例 #2
0
 public void given_201_should_return_3()
 {
     Assert.AreEqual(3, CenturyFromYearConversor.ConvertYear(201));
 }
コード例 #3
0
 public void given_100_should_return_1()
 {
     Assert.AreEqual(1, CenturyFromYearConversor.ConvertYear(100));
 }
コード例 #4
0
 public void given_number_gt_100_and_lt_200_should_return_2()
 {
     Assert.AreEqual(2, CenturyFromYearConversor.ConvertYear(101));
     Assert.AreEqual(2, CenturyFromYearConversor.ConvertYear(110));
 }