public void ConvertProcessingInstructionToText() { const string pre = @"<root><?pi text?></root>"; const string post = @"<root>text</root>"; const string xpath = "//processing-instruction()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertProcessingInstructionWithSpecialCharactersToText() { const string pre = @"<root><?pi <text>?></root>"; const string post = @"<root><text></root>"; const string xpath = "//processing-instruction()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertElementToText() { const string pre = @"<root><foo>bar</foo></root>"; const string post = @"<root>bar</root>"; const string xpath = "//foo"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertCommentWithSpecialCharactersToText() { const string pre = @"<root><!--<text>--></root>"; const string post = @"<root><text></root>"; const string xpath = "//comment()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertCommentToText() { const string pre = @"<root><!--text--></root>"; const string post = @"<root>text</root>"; const string xpath = "//comment()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertCDataSectionWithSpecialCharactersToText() { const string pre = @"<root><![CDATA[<text>]]></root>"; const string post = @"<root><text></root>"; const string xpath = "//text()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }
public void ConvertCDataSectionToText() { const string pre = @"<root><![CDATA[text]]></root>"; const string post = @"<root>text</root>"; const string xpath = "//text()"; var task = new ConvertToText(); Run(pre, post, xpath, task); }