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"); }
public void TestFormatting() { var tag = new Tag("tagName", "tagValue"); Assert.AreEqual(tag.ToString(), "tagName=tagValue"); }