public void TestAddMember()
        {
            GroupMemberCollection collection = new GroupMemberCollection();

            collection.Add(azureMember1);
            GroupMember member = collection.AsEnumerable().First();

            Assert.Equal(azureMember1.Id, member.Id);
        }
        public void TestExceptWith()
        {
            GroupMemberCollection collection1 = new GroupMemberCollection();
            GroupMemberCollection collection2 = new GroupMemberCollection();

            collection1.Add(azureMember1);
            collection1.Add(azureMember2);
            collection2.Add(azureMember2);
            collection1.ExceptWith(collection2);
            Assert.Equal(1, collection1.Count);
            Exception exception = Record.Exception(() => collection1.AsEnumerable().First(m => m.Id == azureMember1.Id));

            Assert.Null(exception);
        }
        public void TestAsEnumerable()
        {
            GroupMemberCollection collection = new GroupMemberCollection();

            Assert.NotNull(collection.AsEnumerable());
        }