示例#1
0
文件: Run.aspx.cs 项目: juherr/fit
        private string TestOutput()
        {
            if (Request.UrlReferrer == null) return "couldn't find referring page";

            Parse tables = new Parse(ReadContents(Request.UrlReferrer));
            new Fixture().doTables(tables);
            using (StringWriter writer = new StringWriter()) {
                tables.print(writer);
                return writer.ToString();
            }
        }
示例#2
0
文件: WikiRunner.cs 项目: juherr/fit
 public override void process()
 {
     try {
         string[] tags = {"wiki", "table", "tr", "td"};
         tables = new Parse(input, tags);    // look for wiki tag enclosing tables
         fixture.doTables(tables.parts);     // only do tables within that tag
     } catch (Exception e) {
         exception(e);
     }
     tables.print(output);
 }
示例#3
0
 public override void process()
 {
     try {
         string[] tags = { "wiki", "table", "tr", "td" };
         tables = new Parse(input, tags);    // look for wiki tag enclosing tables
         fixture.doTables(tables.parts);     // only do tables within that tag
     } catch (Exception e) {
         exception(e);
     }
     tables.print(output);
 }
示例#4
0
文件: FileRunner.cs 项目: juherr/fit
 public virtual void process()
 {
     try {
         tables = new Parse(input);
         fixture.doTables(tables);
     }
     catch (Exception e) {
         exception(e);
     }
     tables.print(output);
 }
示例#5
0
文件: FileRunner.cs 项目: juherr/fit
 public virtual void process()
 {
     try {
         tables = new Parse(input);
         fixture.doTables(tables);
     }
     catch (Exception e) {
         exception(e);
     }
     tables.print(output);
 }
示例#6
0
文件: Parse.cs 项目: juherr/fit
 public virtual void print(TextWriter output)
 {
     output.Write(leader);
     output.Write(tag);
     if (parts != null)
     {
         parts.print(output);
     }
     else
     {
         output.Write(body);
     }
     output.Write(end);
     if (more != null)
     {
         more.print(output);
     }
     else
     {
         output.Write(trailer);
     }
 }
示例#7
0
 // code smell note: copied from DocumentParseFixture
 private String GenerateOutput(Parse parse)
 {
     StringWriter result = new StringWriter();
     parse.print(result);
     return result.ToString().Trim();
 }