示例#1
0
        public void TestEncoding()
        {
            var tag = new Tag("tag, Name", "value");
            Assert.AreEqual(tag.ToString(), "tag\\,\\ Name=value");

            tag = new Tag("tag, Name", "value hello, there");
            Assert.AreEqual(tag.ToString(), "tag\\,\\ Name=value\\ hello\\,\\ there");
        }
示例#2
0
 public void TestFormatting()
 {
     var tag = new Tag("tagName", "tagValue");
     Assert.AreEqual(tag.ToString(), "tagName=tagValue");
 }