public void ToStringReturnsValueString() { // Fixture setup var value = Fixture.Create <string>(); // Exercise system var name = new LdapName(value); // Verify outcome name.ToString().Should().Be(value); }
public void NoEscapeIfSymbolAlreadyEscaped() { // Fixture setup const string value = @"John\, Doe"; // Exercise system var name = new LdapName(value); // Verify outcome name.ToString().Should().Be(value); }
public void LeadingAndTrailingSpacesEscaped() { // Fixture setup const string value = " Hello, World "; const string expected = "\\ Hello\\, World\\ "; // Exercise system var name = new LdapName(value); // Verify outcome name.ToString().Should().Be(expected); }
public void SpecialCharactersEscaped() { // Fixture setup const string value = @",#+< \ >;""="; const string expected = @"\,\#\+\< \\ \>\;\""\="; // Exercise system var name = new LdapName(value); // Verify outcome name.ToString().Should().Be(expected); }