public void CheckDay_ProperDayPassed_ReturnTrue() { bool result = InputValidator.CheckDay("11", "11", "2000"); Assert.AreEqual(true, result); }
public void CheckDay_InvalidTypeOfDay_ThrowsException() { Assert.Throws <BadTypeOfDateElementsException>( () => InputValidator.CheckDay("1,4", "2", "2000")); }
public void CheckDay_DayOutOfRange_ThrowsException() { Assert.Throws <DataOutOfRangeException>( () => InputValidator.CheckDay("40", "2", "2000")); }