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."); }
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."); }