Пример #1
0
        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());
        }
Пример #2
0
        public void When_UsernameContainsComma_ShouldBeReplaced()
        {
            var user = new UserAttribute("us,er");

            user.ToString().ShouldBe("n=us=2Cer");
        }
Пример #3
0
        public void When_UsernameContainsEquals_ShouldBeReplaced()
        {
            var user = new UserAttribute("user="******"n=user=3D");
        }