示例#1
0
        public void CheckMonth_ProperMonthPassed_ReturnTrue()
        {
            bool result = InputValidator.CheckYear("11");

            Assert.AreEqual(true, result);
        }
示例#2
0
 public void CheckYear_InvalidTypeOfYear_ThrowsException()
 {
     Assert.Throws <BadTypeOfDateElementsException>(
         () => InputValidator.CheckYear("123,5"));
 }
示例#3
0
 public void CheckYear_YearOutOfRange_ThrowsException()
 {
     Assert.Throws <DataOutOfRangeException>(
         () => InputValidator.CheckYear("3001"));
 }
示例#4
0
        public void CheckYear_ProperYearPassed_ReturnTrue()
        {
            bool result = InputValidator.CheckYear("2000");

            Assert.AreEqual(true, result);
        }