Esempio n. 1
0
        public void GetGroupMembershipsTest_PassWithNoGroupsInList()
        {
            string         userName = "******";
            IList <string> actual;

            actual = AdHelper.GetGroupMemberships(userName);
            Assert.IsTrue(actual.Count == 0, "No groups were expected to be returned");
        }
Esempio n. 2
0
        public void GetGroupMembershipsTest_PassWithGroupList()
        {
            string         userName = "******";
            IList <string> actual;

            actual = AdHelper.GetGroupMemberships(userName);
            Assert.IsTrue(actual.Count > 0, "Expected groups to be returned. If this test failed, check the userName value and make sure you are connected to a domain.");
        }