public void ShouldReturnFalseForIncorrectDateString() { foreach (string item in s_incorrectDateArray) { Assert.IsFalse(ValidateData.IsDateTime(item)); } }
public void ShouldReturnTrueForCorrectDateString() { foreach (string item in s_correctDateArray) { Assert.IsTrue(ValidateData.IsDateTime(item)); } }
public void ShouldReturnFalseForCorrectDateDecimal() { Assert.IsFalse(ValidateData.IsDateTime(dateDecimal)); }
public void ShouldReturnTrueForCorrectDate() { Assert.IsTrue(ValidateData.IsDateTime(correctDate)); }
/// <summary> /// The method validates whether a supplied object is a valid DateTime entity. /// </summary> /// <param name="objectToValidate">An object to be valdiated.</param> /// <returns>True - if object is valid, false - if object is invalid.</returns> public override bool Validate(object objectToValidate) { return(ValidateData.IsDateTime(objectToValidate)); }