Exemplo n.º 1
0
        public void TestNotEqualsDifferentRule()
        {
            GrouperDocumentMember member1 = TestHelpers.MakeMember(new { Rules = new[] { new { Name = "Upn", Value = "Test" } } });
            GrouperDocumentMember member2 = TestHelpers.MakeMember(new { Rules = new[] { new { Name = "Group", Value = "Test" } } });

            Assert.False(member1.Equals(member2));
        }
Exemplo n.º 2
0
        public void TestNotEqualsDifferentSource()
        {
            GrouperDocumentMember member1 = TestHelpers.MakeMember(new { Source = GroupMemberSources.Static });
            GrouperDocumentMember member2 = TestHelpers.MakeMember(new { Source = GroupMemberSources.OnPremAdGroup });

            Assert.False(member1.Equals(member2));
        }
Exemplo n.º 3
0
        public void TestNotEqualsDifferentAction()
        {
            GrouperDocumentMember member1 = TestHelpers.MakeMember(new { Action = GroupMemberActions.Include });
            GrouperDocumentMember member2 = TestHelpers.MakeMember(new { Action = GroupMemberActions.Exclude });

            Assert.False(member1.Equals(member2));
        }
Exemplo n.º 4
0
        public void TestEquals()
        {
            GrouperDocumentMember member1 = TestHelpers.MakeMember();
            GrouperDocumentMember member2 = TestHelpers.MakeMember();

            Assert.True(member1.Equals(member2));
        }