コード例 #1
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 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);
 }
コード例 #2
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 public void ConvertProcessingInstructionWithSpecialCharactersToText()
 {
     const string pre = @"<root><?pi <text>?></root>";
     const string post = @"<root>&lt;text&gt;</root>";
     const string xpath = "//processing-instruction()";
     var task = new ConvertToText();
     Run(pre, post, xpath, task);
 }
コード例 #3
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 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);
 }
コード例 #4
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 public void ConvertCommentWithSpecialCharactersToText()
 {
     const string pre = @"<root><!--<text>--></root>";
     const string post = @"<root>&lt;text&gt;</root>";
     const string xpath = "//comment()";
     var task = new ConvertToText();
     Run(pre, post, xpath, task);
 }
コード例 #5
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 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);
 }
コード例 #6
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 public void ConvertCDataSectionWithSpecialCharactersToText()
 {
     const string pre = @"<root><![CDATA[<text>]]></root>";
     const string post = @"<root>&lt;text&gt;</root>";
     const string xpath = "//text()";
     var task = new ConvertToText();
     Run(pre, post, xpath, task);
 }
コード例 #7
0
ファイル: ConvertToTextFixture.cs プロジェクト: rh/mix
 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);
 }