public void Child_Should_BuildCorrectDistinguishedName() { // Arrange var fullDN = new DistinguishedName("OU=Users,OU=HDQRK,DC=example,DC=com"); var baseDN = new DistinguishedName("DC=example,DC=com"); // Act var childDN = baseDN.Child("OU=Users,OU=HDQRK"); // Assert Assert.Equal(fullDN.ToString(), childDN.ToString()); }