public void IsHex_HandlesType_ReturnsIsEndsWithType() { var expected = enDecisionType.IsNotHex; //------------Setup for test-------------------------- var isEndsWith = new IsNotHex(); //------------Execute Test--------------------------- //------------Assert Results------------------------- Assert.AreEqual(expected, isEndsWith.HandlesType()); }
public void IsHex_Invoke_NotEqualItems_ReturnsFalse() { //------------Setup for test-------------------------- var endsWith = new IsNotHex(); string[] cols = new string[2]; cols[0] = "TestData"; //------------Execute Test--------------------------- bool result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }
public void IsNotHex_Invoke_EmptyColumns_ReturnsFalse() { //------------Setup for test-------------------------- var endsWith = new IsNotHex(); var cols = new string[1]; cols[0] = null; //------------Execute Test--------------------------- var result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsHex_Invoke_ItemWithxEqual_ReturnsTrue() { //------------Setup for test-------------------------- var endsWith = new IsNotHex(); string[] cols = new string[1]; cols[0] = "0x01"; //------------Execute Test--------------------------- bool result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsNotHex_Invoke_ItemsEqual_ReturnsTrue() { //------------Setup for test-------------------------- var endsWith = new IsNotHex(); var cols = new string[1]; cols[0] = "BBB"; //------------Execute Test--------------------------- var result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }