public void IsHex_Invoke_EmptyColumns_ReturnsFalse() { //------------Setup for test-------------------------- var isHex = new IsHex(); var cols = new string[1]; cols[0] = null; //------------Execute Test--------------------------- var result = isHex.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsHex_Invoke_NotEqualItems_ReturnsFalse() { //------------Setup for test-------------------------- var isHex = new IsHex(); var cols = new string[2]; cols[0] = "TestData"; //------------Execute Test--------------------------- var result = isHex.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsHex_Invoke_NotEqualItems_ReturnsFalse() { //------------Setup for test-------------------------- var endsWith = new IsHex(); string[] cols = new string[2]; cols[0] = "TestData"; //------------Execute Test--------------------------- bool result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsFalse(result); }
public void IsHex_Invoke_ItemWithxEqual_ReturnsTrue() { //------------Setup for test-------------------------- var isHex = new IsHex(); var cols = new string[1]; cols[0] = "0x01"; //------------Execute Test--------------------------- var result = isHex.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }
public void IsHex_Invoke_ItemWithxEqual_ReturnsTrue() { //------------Setup for test-------------------------- var endsWith = new IsHex(); string[] cols = new string[1]; cols[0] = "0x01"; //------------Execute Test--------------------------- bool result = endsWith.Invoke(cols); //------------Assert Results------------------------- Assert.IsTrue(result); }