public void DistinguishedName_AddChild_Null() { var dn = new DistinguishedName("DC=adatum,DC=com"); dn.AddChild((DistinguishedName)null); dn.AddChild((DistinguishedNameComponent)null); Assert.AreEqual("DC=adatum,DC=com", dn.ToString()); }
public void DistinguishedName_AddChild() { var dn = new DistinguishedName("DC=adatum,DC=com"); dn.AddChild("CN", "Users"); Assert.AreEqual("CN=Users,DC=adatum,DC=com", dn.ToString()); }