public void CheckMonth_ProperMonthPassed_ReturnTrue() { bool result = InputValidator.CheckYear("11"); Assert.AreEqual(true, result); }
public void CheckYear_InvalidTypeOfYear_ThrowsException() { Assert.Throws <BadTypeOfDateElementsException>( () => InputValidator.CheckYear("123,5")); }
public void CheckYear_YearOutOfRange_ThrowsException() { Assert.Throws <DataOutOfRangeException>( () => InputValidator.CheckYear("3001")); }
public void CheckYear_ProperYearPassed_ReturnTrue() { bool result = InputValidator.CheckYear("2000"); Assert.AreEqual(true, result); }