public void IsRegEx_Invoke_IsRegEx_ReturnsTrue() { //------------Setup for test-------------------------- var notStartsWith = new IsRegEx(); string[] cols = new string[2]; cols[0] = "324"; cols[1] = "d"; //------------Execute Test--------------------------- bool result = notStartsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void GivenSomeString_IsRegEx_Invoke_ReturnsFalse() { //------------Setup for test-------------------------- var isRegEx = new IsRegEx(); string[] cols = new string[2]; cols[0] = "Number 5 should"; cols[1] = "d"; //------------Execute Test--------------------------- bool result = isRegEx.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }