Exemplo n.º 1
0
        public void IsHex_HandlesType_ReturnsIsIsHexType()
        {
            var expected = enDecisionType.IsHex;
            //------------Setup for test--------------------------
            var isisHex = new IsHex();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(expected, isisHex.HandlesType());
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
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);
        }
Exemplo n.º 6
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);
        }