当前位置: 首页>>代码示例>>C#>>正文


C# fit.Parse类代码示例

本文整理汇总了C#中fit.Parse的典型用法代码示例。如果您正苦于以下问题:C# Parse类的具体用法?C# Parse怎么用?C# Parse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


Parse类属于fit命名空间,在下文中一共展示了Parse类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: DoRow

		public override void DoRow(Parse row) {
			hadRowOperation = false;
			base.DoRow(row);
			if (!hadRowOperation) {
				clean();
			}
		}
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:Clean.cs

示例2: testIterating

 public void testIterating()
 {
     Parse p = new Parse("leader<table><tr><td>one</td><td>two</td><td>three</td></tr></table>trailer");
     Assert.AreEqual("one", p.parts.parts.body);
     Assert.AreEqual("two", p.parts.parts.more.body);
     Assert.AreEqual("three", p.parts.parts.more.more.body);
 }
开发者ID:juherr,项目名称:fit,代码行数:7,代码来源:FrameworkTest.cs

示例3: DoCheckOperation

 public void DoCheckOperation(Parse expectedValue, CellRange cells)
 {
     CellOperation.Check(GetTargetObject(),
                                 new CellRange(MethodCells(cells)),
                                 new CellRange(ParameterCells(cells)),
                                 expectedValue);
 }
开发者ID:marisaseal,项目名称:fitsharp,代码行数:7,代码来源:FlowFixtureBase.cs

示例4: DoRows

 public override void DoRows(Parse theRows) {
     if (theRows == null) throw new TableStructureException("No header row.");
     ExamineTableStructure(theRows.Parts);
     if (expectedCount == 0) return;
     myValues = new ValueArray(RepeatString);
     base.DoRows(theRows.More);
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:CalculateFixture.cs

示例5: TestResult

 public static Parse TestResult(Parse theTest)
 {
     var story = new StoryTest(theTest);
     story.writer = story.SaveTestResult;
     story.Execute();
     return story.resultTables;
 }
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:7,代码来源:StoryTest.cs

示例6: CheckRowSize

 private void CheckRowSize(Parse theCells) {
     int expectedSize = myParameterCount + expectedCount + 1;
     if (theCells.Size < expectedSize ||
         (!IHaveNoteColumns && theCells.Size != expectedSize)) {
         throw new RowWidthException(expectedSize);
     }
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:CalculateFixture.cs

示例7: AddRow

 private Parse AddRow(Parse lastRow, DataRow dr, bool markAsError, String desc)
 {
     Parse newRow = new Parse("tr", null, null, null);
     lastRow.More = newRow;
     lastRow = newRow;
     try
     {
         Parse firstCell = new Parse("td",
                 GetStringValue(dr, columnNames[0]), null, null);
         newRow.Parts = firstCell;
         if (markAsError)
         {
             firstCell.AddToBody(Fixture.Gray(desc));
             this.Wrong(firstCell);
         }
         for (int i = 1; i < columnNames.Length; i++)
         {
             Parse nextCell = new Parse("td",
                     GetStringValue(dr, columnNames[i]), null, null);
             firstCell.More = nextCell;
             firstCell = nextCell;
         }
     }
     catch (Exception e)
     {
         this.Exception(newRow, e);
     }
     return lastRow;
 }
开发者ID:nhajratw,项目名称:fitsharp,代码行数:29,代码来源:CompareStoredQueries.cs

示例8: ParseTree

 public ParseTree(Parse theParse) {
     tree = new ListTree(GetTitle(theParse));
     for (Parse child = Root(theParse).Parts; child != null; child = child.More) {
         tree.AddChild(new ParseTree(child));
     }
     myHashCode = theParse.ToString().GetHashCode();
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:ParseTree.cs

示例9: GetCellForColumn

 static Parse GetCellForColumn(Parse row, int col)
 {
     Parse cell = row.Parts;
     for (int i = 0; i < col; i++)
         cell = cell.More;
     return cell;
 }
开发者ID:nhajratw,项目名称:fitsharp,代码行数:7,代码来源:RowFixture.cs

示例10: ResultingHTML

        public String ResultingHTML()
        {
            Parse table = new Parse(OriginalHTML);
            Parse row = table.at(0, Row - 1);
            Parse cell = row.at(0, Column - 1);

            if (OverwriteCellBody != null) cell.body = OverwriteCellBody;
            if (AddToCellBody != null) cell.addToBody(AddToCellBody);

            if (OverwriteCellTag != null) cell.tag = OverwriteCellTag;
            if (OverwriteEndCellTag != null) cell.end = OverwriteEndCellTag;
            if (AddToCellTag != null) cell.addToTag(stripDelimiters(AddToCellTag));

            if (OverwriteRowTag != null) row.tag = OverwriteRowTag;
            if (OverwriteEndRowTag != null) row.end = OverwriteEndRowTag;
            if (AddToRowTag != null) row.addToTag(stripDelimiters(AddToRowTag));

            if (OverwriteTableTag != null) table.tag = OverwriteTableTag;
            if (OverwriteEndTableTag != null) table.end = OverwriteEndTableTag;
            if (AddToTableTag != null) table.addToTag(stripDelimiters(AddToTableTag));

            if (AddCellFollowing != null) addParse(cell, AddCellFollowing, new String[] {"td"});
            if (RemoveFollowingCell != null) removeParse(cell);

            if (AddRowFollowing != null) addParse(row, AddRowFollowing, new String[] {"tr", "td"});
            if (RemoveFollowingRow != null) removeParse(row);

            if (AddTableFollowing != null) addParse(table, AddTableFollowing, new String[] {"table", "tr", "td"});

            return GenerateOutput(table);
        }
开发者ID:juherr,项目名称:fit,代码行数:31,代码来源:AnnotationFixture.cs

示例11: MakeTables

 public static Parse MakeTables(params object[] theRows) {
     Parse tables = null;
     for (int i = theRows.Length-1; i >=0; i--) {
         tables = new Parse("table", null, (Parse)theRows[i], tables);
     }
     return tables;
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:ParseNode.cs

示例12: MakeCells

 public static Parse MakeCells(params object[] theContents) {
     Parse cells = null;
     for (int i = theContents.Length-1; i >=0; i--) {
         cells = new Parse("td", theContents[i].ToString(), null, cells);
     }
     return cells;
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:ParseNode.cs

示例13: MakeRows

 public static Parse MakeRows(params object[] theCells) {
     Parse rows = null;
     for (int i = theCells.Length-1; i >=0; i--) {
         rows = new Parse("tr", null, (Parse)theCells[i], rows);
     }
     return rows;
 }
开发者ID:GibSral,项目名称:fitsharp,代码行数:7,代码来源:ParseNode.cs

示例14: DoRow

 public override void DoRow(Parse row)
 {
     FitRow fRow = new FitRow(row);
     TableHandler.ProcessRow(fRow);
     
     HandleRowResult(ref row);
 }
开发者ID:dineshkummarc,项目名称:SWAT_4.1_Binaries_Source,代码行数:7,代码来源:SWATFixture.cs

示例15: DoCheckOperation

 public void DoCheckOperation(Parse expectedValue, CellRange cells)
 {
     CellOperation.Check(GetTargetObject(),
                                 MethodRowSelector.SelectMethodCells(cells),
                                 MethodRowSelector.SelectParameterCells(cells),
                                 expectedValue);
 }
开发者ID:JeffryGonzalez,项目名称:fitsharp,代码行数:7,代码来源:FlowFixtureBase.cs


注:本文中的fit.Parse类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。