本文整理汇总了C#中CompareTool.SetCompareByContentErrorsLimit方法的典型用法代码示例。如果您正苦于以下问题:C# CompareTool.SetCompareByContentErrorsLimit方法的具体用法?C# CompareTool.SetCompareByContentErrorsLimit怎么用?C# CompareTool.SetCompareByContentErrorsLimit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CompareTool
的用法示例。
在下文中一共展示了CompareTool.SetCompareByContentErrorsLimit方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CompareToolErrorReportTest02
public void CompareToolErrorReportTest02() {
CompareTool compareTool = new CompareTool();
compareTool.SetCompareByContentErrorsLimit(10);
compareTool.SetGenerateCompareByContentXmlReport(true);
compareTool.SetXmlReportName("report02");
String outPdf = TEST_RESOURCES_PATH + "tagged_pdf.pdf";
String cmpPdf = TEST_RESOURCES_PATH + "cmp_tagged_pdf.pdf";
String result = compareTool.CompareByContent(outPdf, cmpPdf, OUT_FOLDER, "difference");
Assert.NotNull("CompareTool must return differences found between the files",result);
Assert.IsTrue(CompareXmls(TEST_RESOURCES_PATH + "cmp_report02.xml", OUT_FOLDER + "report02.xml"), "CompareTool report differs from the reference one");
Console.WriteLine(result);
}
示例2: Test2
public void Test2() {
CompareTool compareTool = new CompareTool();
compareTool.SetCompareByContentErrorsLimit(10);
compareTool.SetGenerateCompareByContentXmlReport(true);
String outPdf = TEST_RESOURCES_PATH + "tagged_pdf.pdf";
String cmpPdf = TEST_RESOURCES_PATH + "cmp_tagged_pdf.pdf";
String result = compareTool.CompareByContent(outPdf, cmpPdf, OUT_FOLDER, "difference");
Assert.NotNull(result);
Console.WriteLine(result);
}
示例3: CompareByContent
private void CompareByContent(String cmp, String output, String targetDir, String operation) {
CompareTool cmpTool = new CompareTool();
cmpTool.SetCompareByContentErrorsLimit(10);
String errorMessage = cmpTool.CompareByContent(output, cmp, targetDir, operation);
if (errorMessage != null) {
Assert.Fail(errorMessage);
}
}