예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }