public void WillEscapeCommaInToString() { var expected = "n=ThisIs=2CMyUsername"; var attr = new UserAttribute("ThisIs,MyUsername"); Assert.Equal("ThisIs,MyUsername", attr.Value); Assert.Equal(expected, attr.ToString()); }
public void When_UsernameContainsComma_ShouldBeReplaced() { var user = new UserAttribute("us,er"); user.ToString().ShouldBe("n=us=2Cer"); }
public void When_UsernameContainsEquals_ShouldBeReplaced() { var user = new UserAttribute("user="******"n=user=3D"); }