public void MultiToString() { MultiString multi = new MultiString(BASE_MULTI_STRING); Assert.AreEqual(BASE_TOSTRING_EXPECT, multi.ToString(), @"MULTI --> ToString Conversion failed"); }
static void Main(string[] args) { MultiString example = new MultiString(@"THIS IS [cb3]A TEST [cb]WITH COLOR CHANGE"); string xmlExample = example.MultiDocument.ToString(); string textExample = example.ToString(); string htmlExpect = @"<multi>THIS IS <cb3 />A TEST <cb />WITH COLOR CHANGE</multi>"; string textExpect = @"THIS IS A TEST WITH COLOR CHANGE"; }