public void IsDate_Invoke_IsDate_ReturnsTrue() { //------------Setup for test-------------------------- var notStartsWith = new IsDate(); var cols = new string[2]; cols[0] = "01/12/2000"; //------------Execute Test--------------------------- var result = notStartsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }
public void GivenSomeString_IsDate_Invoke_ReturnsFalse() { //------------Setup for test-------------------------- var isDate = new IsDate(); var cols = new string[2]; cols[0] = "Yersteday"; //------------Execute Test--------------------------- var result = isDate.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }