public void IsNotEqual_IsNotEqualUnitTest_Invoke_TrueIsReturned_Decimal()

        {
            var comparer = new IsNotEqual();
            var actual   = comparer.Invoke(new[] { "1.08", "1.80" });

            Assert.IsTrue(actual, "IsNotEqual returned the wrong result when comparing integers");

            actual = comparer.Invoke(new[] { "Val", "Val" });
            Assert.IsFalse(actual, "IsNotEqual returned the wrong result when comparing strings");
        }
Exemplo n.º 2
0
        public void IsEndsWith_Invoke_NotEqualItems_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotEqual();
            var cols     = new string[2];

            cols[0] = "TestData";
            cols[1] = "No";
            //------------Execute Test---------------------------
            var result = endsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
Exemplo n.º 3
0
        public void IsEqual_Invoke_ItemsEqual_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var endsWith = new IsNotEqual();

            string[] cols = new string[2];
            cols[0] = "TestData";
            cols[1] = "TestData";
            //------------Execute Test---------------------------
            bool result = endsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }