本文整理汇总了C#中ITestResults类的典型用法代码示例。如果您正苦于以下问题:C# ITestResults类的具体用法?C# ITestResults怎么用?C# ITestResults使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITestResults类属于命名空间,在下文中一共展示了ITestResults类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HandleResult
protected internal override void HandleResult(string homepageHtml, ITestResults results)
{
foreach (PostTest test in tests)
{
test.HandleResult(homepageHtml, results);
}
}
示例2: HandleResult
protected internal override void HandleResult(OpenLiveWriter.Extensibility.BlogClient.BlogPost blogPost, ITestResults results)
{
if (blogPost.Categories.Length == 2)
results.AddResult("supportsMultipleCategories", YES);
else
results.AddResult("supportsMultipleCategories", NO);
}
示例3: HtmlImageResultFormatter
public HtmlImageResultFormatter(Configuration configuration, ITestResults results, HtmlResourceSet htmlResourceSet)
{
this.configuration = configuration;
this.results = results;
this.htmlResourceSet = htmlResourceSet;
this.xmlns = HtmlNamespace.Xhtml;
}
示例4: WordScenarioFormatter
public WordScenarioFormatter(WordStepFormatter wordStepFormatter, Configuration configuration,
ITestResults nunitResults)
{
this.wordStepFormatter = wordStepFormatter;
this.configuration = configuration;
this.nunitResults = nunitResults;
}
示例5: WordScenarioOutlineFormatter
public WordScenarioOutlineFormatter(WordStepFormatter wordStepFormatter, WordTableFormatter wordTableFormatter, IConfiguration configuration, ITestResults testResults)
{
this.wordStepFormatter = wordStepFormatter;
this.wordTableFormatter = wordTableFormatter;
this.configuration = configuration;
this.testResults = testResults;
}
示例6: DitaScenarioFormatter
public DitaScenarioFormatter(Configuration configuration, ITestResults nunitResults,
DitaStepFormatter ditaStepFormatter)
{
this.configuration = configuration;
this.nunitResults = nunitResults;
this.ditaStepFormatter = ditaStepFormatter;
}
示例7: HandleResult
protected internal override void HandleResult(string homepageHtml, ITestResults results)
{
Regex regex = new Regex(Regex.Escape(guid1) + "(.*?)" + Regex.Escape(guid2));
SimpleHtmlParser parser = new SimpleHtmlParser(homepageHtml);
for (Element e = parser.Next(); e != null; e = parser.Next())
{
if (e is Text)
{
Match m = regex.Match(e.ToString());
if (m.Success)
{
string str = m.Groups[1].Value;
if (str == HtmlUtils.EscapeEntities(TEST_STRING))
results.AddResult("requiresHtmlTitles", YES);
else if (str == HtmlUtils.EscapeEntities(HtmlUtils.EscapeEntities(TEST_STRING)))
results.AddResult("requiresHtmlTitles", NO);
else
results.AddResult("requiresHtmlTitles", "[ERROR] (value was: " + str + ")");
return;
}
}
}
throw new InvalidOperationException("Title encoding test failed--title was not detected");
}
示例8: DitaFeatureFormatter
public DitaFeatureFormatter(Configuration configuration, DitaScenarioFormatter ditaScenarioFormatter, DitaScenarioOutlineFormatter ditaScenarioOutlineFormatter, DitaMapPathGenerator ditaMapPathGenerator, ITestResults nunitResults)
{
this.configuration = configuration;
this.ditaScenarioFormatter = ditaScenarioFormatter;
this.ditaScenarioOutlineFormatter = ditaScenarioOutlineFormatter;
this.ditaMapPathGenerator = ditaMapPathGenerator;
this.nunitResults = nunitResults;
}
示例9: WordFeatureFormatter
public WordFeatureFormatter(WordScenarioFormatter wordScenarioFormatter, WordScenarioOutlineFormatter wordScenarioOutlineFormatter, WordStyleApplicator wordStyleApplicator, Configuration configuration, ITestResults nunitResults)
{
this.wordScenarioFormatter = wordScenarioFormatter;
this.wordScenarioOutlineFormatter = wordScenarioOutlineFormatter;
this.wordStyleApplicator = wordStyleApplicator;
this.configuration = configuration;
this.nunitResults = nunitResults;
}
示例10: ExcelScenarioFormatter
public ExcelScenarioFormatter(ExcelStepFormatter excelStepFormatter,
Configuration configuration,
ITestResults testResults)
{
this.excelStepFormatter = excelStepFormatter;
this.configuration = configuration;
this.testResults = testResults;
}
示例11: ExtractResultsFromTest
private void ExtractResultsFromTest(ITestResults result)
{
Trace.Assert(result != null);
Trace.Assert(!String.IsNullOrWhiteSpace(result.FixtureName));
Array.ForEach(result.Passed.ToArray(), name => AddPassedTest(result.FixtureName + " - " + name));
Array.ForEach(result.Failed.ToArray(), name => AddFailedTest(result.FixtureName + " - " + name));
}
示例12: TotalCoverageResults
public TotalCoverageResults(ITestResults testResults, IDictionary<string, object> coverageResults)
{
Trace.Assert(testResults != null);
Trace.Assert(coverageResults != null);
this.testResults = testResults;
this.coverageResults = coverageResults;
}
示例13: SetResultsForIndividualScenariosUnderFeature
private static void SetResultsForIndividualScenariosUnderFeature(FeatureNode featureTreeNode, ITestResults testResults)
{
foreach (var scenario in featureTreeNode.Feature.FeatureElements)
{
scenario.Result = scenario.GetType().Name == "Scenario"
? testResults.GetScenarioResult(scenario as Scenario)
: testResults.GetScenarioOutlineResult(scenario as ScenarioOutline);
}
}
示例14: HandleContentResult
public override void HandleContentResult(string result, ITestResults results)
{
if (result == null)
throw new InvalidOperationException("Embed test markers were not found!");
else if (result.ToLowerInvariant().Contains("<embed"))
results.AddResult("supportsEmbeds", YES);
else
results.AddResult("supportsEmbeds", NO);
}
示例15: ExcelFeatureFormatter
public ExcelFeatureFormatter(ExcelScenarioFormatter excelScenarioFormatter,
ExcelScenarioOutlineFormatter excelScenarioOutlineFormatter,
Configuration configuration,
ITestResults testResults)
{
this.excelScenarioFormatter = excelScenarioFormatter;
this.excelScenarioOutlineFormatter = excelScenarioOutlineFormatter;
this.configuration = configuration;
this.testResults = testResults;
}