コード例 #1
0
 public void Should_be_possible_to_compare_two_not_equal_not_null_entity_values()
 {
     Assert.IsFalse(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.notequal, "aaa", "aaa"));
     Assert.IsTrue(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.notequal, "aaa", "AAA"));
     Assert.IsFalse(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.caseinsensitivenotequal, "aaa", "AAA"));
     Assert.IsTrue(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.notequal, "aaa", "avaa"));
 }
コード例 #2
0
        public void Should_be_possible_to_compare_two_entity_values_where_one_is_null_and_the_other_is_not_null()
        {
            Assert.IsFalse(OvalEntityComparer.IsEntityValuesEquals(OperationEnumeration.equals, null, "aaa"));
            Assert.IsFalse(OvalEntityComparer.IsEntityValuesEquals(OperationEnumeration.equals, "aaa", null));

            Assert.IsTrue(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.notequal, null, "aaa"));
            Assert.IsTrue(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.notequal, "aaa", null));
        }
コード例 #3
0
 public void Should_be_possible_to_compare_two_null_entity_values()
 {
     Assert.IsTrue(OvalEntityComparer.IsEntityValuesEquals(OperationEnumeration.equals, null, null));
     Assert.IsFalse(OvalEntityComparer.IsEntityValuesNotEqual(OperationEnumeration.equals, null, null));
 }