當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。