本文整理汇总了C#中fit.Parse类的典型用法代码示例。如果您正苦于以下问题:C# Parse类的具体用法?C# Parse怎么用?C# Parse使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Parse类属于fit命名空间,在下文中一共展示了Parse类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: DoTable
public override void DoTable(Parse table)
{
var rows = table.Parts.More;
if (rows == null) throw new TableStructureException("Header row missing.");
myHeaderRow = rows;
CompareRows(table, 1);
}
开发者ID:kpartusch,项目名称:fitsharp,代码行数:7,代码来源:NamedCollectionFixtureBase.cs
示例17: testRecursing
public void testRecursing()
{
Parse p = new Parse("leader<table><TR><Td>body</tD></TR></table>trailer");
Assert.AreEqual(null, p.body);
Assert.AreEqual(null, p.parts.body);
Assert.AreEqual("body", p.parts.parts.body);
}
开发者ID:juherr,项目名称:fit,代码行数:7,代码来源:FrameworkTest.cs
示例18: DoTable
public override void DoTable(Parse theTable)
{
if (Args.Length > 0) {
string behavior = Args[0].Trim().ToLower();
Processor.Configuration.GetItem<Settings>().Behavior = behavior;
}
}
开发者ID:russelyang,项目名称:fitsharp,代码行数:7,代码来源:FitVersionFixture.cs
示例19: DoRow
public override void DoRow(Parse theRow)
{
try {
CheckRowSize(theRow.Parts);
for (int j = 0; j < expectedCount; j++) {
var memberCells = new List<Parse> { headerCells.At(j) };
foreach (Parse cell in methodSuffixCells.Cells) memberCells.Add(cell);
Parse expectedCell = theRow.Parts.At(myParameterCount + j + 1);
try {
CellOperation.Check(GetTargetObject(), new CellRange(memberCells),
myValues.GetCells(new CellRange(theRow.Parts, myParameterCount).Cells),
expectedCell);
}
catch (MemberMissingException e) {
TestStatus.MarkException(headerCells.At(j), e);
TestStatus.MarkIgnore(expectedCell);
}
catch (IgnoredException) {
TestStatus.MarkIgnore(expectedCell);
}
catch (Exception e) {
TestStatus.MarkException(expectedCell, e);
}
}
}
catch (Exception e) {
TestStatus.MarkException(theRow.Parts, e);
}
}
开发者ID:vaibhavsapre,项目名称:fitsharp,代码行数:32,代码来源:CalculateFixture.cs
示例20: RunRow
private void RunRow(Parse row) {
Parse cell = row.Parts;
//first set input params
for (int col = 0; col < columnAccessors.Length; col++)
{
Accessor accessor = columnAccessors[col];
ICellHandler cellHandler = CellOperation.GetHandler(this, cell, accessor.ParameterType);
if (!isOutputColumn[col])
{
cellHandler.HandleInput(this, cell, accessor);
}
cell = cell.More;
}
command.ExecuteNonQuery();
cell = row.Parts;
//next evaluate output params
for (int col=0; col<columnAccessors.Length; col++)
{
Accessor accessor=columnAccessors[col];
ICellHandler cellHandler = CellOperation.GetHandler(this,cell, accessor.ParameterType);
if (isOutputColumn[col]) {
cellHandler.HandleCheck(this, cell, accessor);
}
cell = cell.More;
}
}
开发者ID:timgifford,项目名称:dbfit.NET,代码行数:26,代码来源:Insert.cs
注:本文中的fit.Parse类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论