コード例 #1
0
        public void TestNotEqualsDifferentValue()
        {
            GrouperDocumentRule rule1 = TestHelpers.MakeRule(new { Name = "Upn", Value = "One" });
            GrouperDocumentRule rule2 = TestHelpers.MakeRule(new { Name = "Upn", Value = "Two" });

            Assert.False(rule1.Equals(rule2));
        }
コード例 #2
0
        public void TestEquals()
        {
            GrouperDocumentRule rule1 = TestHelpers.MakeRule();
            GrouperDocumentRule rule2 = TestHelpers.MakeRule();

            Assert.True(rule1.Equals(rule2));
        }