public void NonNumericDayIsHandled() { const string badInput = "Fred/10/2014"; Assert.Throws <ArgumentException>(() => DateCalculator.GetDateFromString(badInput)); }
public void NegativeInputThrowsException() { const string badInput = "-13/10/2014"; Assert.Throws <ArgumentException>(() => DateCalculator.GetDateFromString(badInput)); }
public void ZeroInputThrowsException() { const string badInput = "13/10/0"; Assert.Throws <ArgumentException>(() => DateCalculator.GetDateFromString(badInput)); }
public void WhenDayMissingExceptionIsThrown() { const string badInput = "11/2010"; Assert.Throws <ArgumentException>(() => DateCalculator.GetDateFromString(badInput)); }