public void ParseDateTimeUnexistingDateTest() { var isValidDateTime = new IsValidDateTime(new StringConstant("2018-02-29"), "yyyy-MM-dd"); Assert.IsFalse(isValidDateTime.Value); }
public void ParseDateTimeTooBigTest() { var isValidDateTime = new IsValidDateTime(new StringConstant("10000-02-20"), "yyyy-MM-dd"); Assert.IsFalse(isValidDateTime.Value); }
public void ParseDateTimeDateOkTest() { var isValidDateTime = new IsValidDateTime(new StringConstant("2018-02-28"), "yyyy-MM-dd"); Assert.IsTrue(isValidDateTime.Value); }