本文整理汇总了C#中Body.InsertPageBreak方法的典型用法代码示例。如果您正苦于以下问题:C# Body.InsertPageBreak方法的具体用法?C# Body.InsertPageBreak怎么用?C# Body.InsertPageBreak使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Body
的用法示例。
在下文中一共展示了Body.InsertPageBreak方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Format
public void Format(Body body, FeatureNode featureNode)
{
Feature feature = featureNode.Feature;
body.InsertPageBreak();
if (this.configuration.HasTestResults)
{
TestResult testResult = this.nunitResults.GetFeatureResult(feature);
if (testResult.WasExecuted && testResult.WasSuccessful)
{
body.GenerateParagraph("Passed", "Passed");
}
else if (testResult.WasExecuted && !testResult.WasSuccessful)
{
body.GenerateParagraph("Failed", "Failed");
}
}
body.GenerateParagraph(feature.Name, "Heading1");
this.wordDescriptionFormatter.Format(body, feature.Description);
if (feature.Background != null)
{
this.wordBackgroundFormatter.Format(body, feature.Background);
}
foreach (IFeatureElement featureElement in feature.FeatureElements)
{
var scenario = featureElement as Scenario;
if (scenario != null)
{
this.wordScenarioFormatter.Format(body, scenario);
}
var scenarioOutline = featureElement as ScenarioOutline;
if (scenarioOutline != null)
{
this.wordScenarioOutlineFormatter.Format(body, scenarioOutline);
}
}
}