public void DateOfBirthTryParseCanOutNullValue() { DateOfBirth result; DateOfBirth.TryParse("1920-02-09", out result); Assert.IsNull(result); }
public void DateOfBirthTryParseCanOutValidResult() { DateOfBirth result; DateOfBirth.TryParse("2012-03-29", out result); Assert.IsTrue($"{result:yyyy-MM-dd}" == "2012-03-29"); }
public void DateOfBirthTryParseCanReturnFalse() { DateOfBirth result; Assert.IsFalse(DateOfBirth.TryParse("1776-07-04", out result)); }
public void DateOfBirthTryParseCanReturnTrue() { DateOfBirth result; Assert.IsTrue(DateOfBirth.TryParse("1995-05-01", out result)); }