public void IsNumeric_Invoke_IsNumeric_ReturnsTrue() { //------------Setup for test-------------------------- var notStartsWith = new IsNumeric(); string[] cols = new string[2]; cols[0] = "324"; //------------Execute Test--------------------------- bool result = notStartsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }
public void GivenSomeString_IsNumeric_Invoke_ReturnsFalse() { //------------Setup for test-------------------------- var isNumeric = new IsNumeric(); string[] cols = new string[2]; cols[0] = "Eight"; //------------Execute Test--------------------------- bool result = isNumeric.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }