public void PrependReturnsUpdatedInstance() { // Fixture setup var dn = new DN(new Rdn(NamingAttribute.Ou, new LdapName("Users"))); // Exercise system dn = dn.Prepend(new Rdn(NamingAttribute.Cn, new LdapName("John Doe"))); // Verify outcome dn.ToString().Should().Be("CN=John Doe,OU=Users"); }