Ejemplo n.º 1
0
        public void GetDistinguishedNameTest_PassWithNoDnReturned()
        {
            string userName = "******";
            string expected = string.Empty;
            string actual;

            actual = AdHelper.GetDistinguishedName(userName);
            Assert.IsTrue(actual.Length == 0, "No DN was expected a back.");
        }
Ejemplo n.º 2
0
        public void GetDistinguishedNameTest_PassWithGoodDn()
        {
            string userName = "******";
            string expected = string.Empty;
            string actual;

            actual = AdHelper.GetDistinguishedName(userName);
            Assert.IsTrue(actual.Length > 0, "Expected a DN back. If this test failed, check the userName value and make sure you are connected to a domain.");
        }