本文整理汇总了C#中IStep.LeafFor方法的典型用法代码示例。如果您正苦于以下问题:C# IStep.LeafFor方法的具体用法?C# IStep.LeafFor怎么用?C# IStep.LeafFor使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IStep
的用法示例。
在下文中一共展示了IStep.LeafFor方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Execute
public void Execute(IStep containerStep, ITestContext context)
{
context.PerformAction(containerStep, _before);
containerStep.LeafFor(_leafName).AllSteps().Each(step => { context.RunStep(InnerGrammar, step); });
context.PerformAction(containerStep, _after);
}
示例2: addChildSteps
private void addChildSteps(IStep parent, INode sectionNode)
{
StepLeaf childSteps = parent.LeafFor(sectionNode.Name);
sectionNode.ForEachChild(childStepNode =>
{
ITestPart child = ReadPart(childStepNode);
childSteps.Add(child);
});
}
示例3: leafFor
private StepLeaf leafFor(IStep step)
{
return step.LeafFor(_leafName);
}
示例4: GetLeaf
public StepLeaf GetLeaf(IStep step)
{
return step.LeafFor(LeafName);
}
示例5: buildExpectedRows
private IList<SetRow> buildExpectedRows(ITestContext context, IStep step)
{
var list = new List<SetRow>();
step.LeafFor(_leafName).AllSteps().Each(x =>
{
var row = toExpectedRow(x, context);
list.Add(row);
});
return list;
}
示例6: LeafFor
public StepLeaf LeafFor(IStep step)
{
return step.LeafFor(_leafName);
}