• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# ITestResults类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中ITestResults的典型用法代码示例。如果您正苦于以下问题:C# ITestResults类的具体用法?C# ITestResults怎么用?C# ITestResults使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ITestResults类属于命名空间,在下文中一共展示了ITestResults类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: HandleResult

 protected internal override void HandleResult(string homepageHtml, ITestResults results)
 {
     foreach (PostTest test in tests)
     {
         test.HandleResult(homepageHtml, results);
     }
 }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:7,代码来源:CompositePostTest.cs


示例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);
 }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:7,代码来源:SupportsMultipleCategoriesTest.cs


示例3: HtmlImageResultFormatter

 public HtmlImageResultFormatter(Configuration configuration, ITestResults results, HtmlResourceSet htmlResourceSet)
 {
     this.configuration = configuration;
     this.results = results;
     this.htmlResourceSet = htmlResourceSet;
     this.xmlns = HtmlNamespace.Xhtml;
 }
开发者ID:hugohaggmark,项目名称:pickles,代码行数:7,代码来源:HtmlImageResultFormatter.cs


示例4: WordScenarioFormatter

 public WordScenarioFormatter(WordStepFormatter wordStepFormatter, Configuration configuration,
                              ITestResults nunitResults)
 {
     this.wordStepFormatter = wordStepFormatter;
     this.configuration = configuration;
     this.nunitResults = nunitResults;
 }
开发者ID:ppnrao,项目名称:pickles,代码行数:7,代码来源:WordScenarioFormatter.cs


示例5: WordScenarioOutlineFormatter

 public WordScenarioOutlineFormatter(WordStepFormatter wordStepFormatter, WordTableFormatter wordTableFormatter, IConfiguration configuration, ITestResults testResults)
 {
     this.wordStepFormatter = wordStepFormatter;
     this.wordTableFormatter = wordTableFormatter;
     this.configuration = configuration;
     this.testResults = testResults;
 }
开发者ID:picklesdoc,项目名称:pickles,代码行数:7,代码来源:WordScenarioOutlineFormatter.cs


示例6: DitaScenarioFormatter

 public DitaScenarioFormatter(Configuration configuration, ITestResults nunitResults,
                              DitaStepFormatter ditaStepFormatter)
 {
     this.configuration = configuration;
     this.nunitResults = nunitResults;
     this.ditaStepFormatter = ditaStepFormatter;
 }
开发者ID:eduaquiles,项目名称:pickles,代码行数:7,代码来源:DitaScenarioFormatter.cs


示例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");
        }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:27,代码来源:TitleEncodingTest.cs


示例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;
 }
开发者ID:hugohaggmark,项目名称:pickles,代码行数:8,代码来源:DitaFeatureFormatter.cs


示例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;
 }
开发者ID:hugohaggmark,项目名称:pickles,代码行数:8,代码来源:WordFeatureFormatter.cs


示例10: ExcelScenarioFormatter

 public ExcelScenarioFormatter(ExcelStepFormatter excelStepFormatter, 
                               Configuration configuration, 
                               ITestResults testResults)
 {
     this.excelStepFormatter = excelStepFormatter;
     this.configuration = configuration;
     this.testResults = testResults;
 }
开发者ID:eduaquiles,项目名称:pickles,代码行数:8,代码来源:ExcelScenarioFormatter.cs


示例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));
        }
开发者ID:plkumar,项目名称:jish,代码行数:8,代码来源:TestSuiteResults.cs


示例12: TotalCoverageResults

        public TotalCoverageResults(ITestResults testResults, IDictionary<string, object> coverageResults)
        {
            Trace.Assert(testResults != null);
              Trace.Assert(coverageResults != null);

              this.testResults = testResults;
              this.coverageResults = coverageResults;
        }
开发者ID:plkumar,项目名称:jish,代码行数:8,代码来源:TotalCoverageResults.cs


示例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);
     }
 }
开发者ID:eduaquiles,项目名称:pickles,代码行数:9,代码来源:Runner.cs


示例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);
 }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:SupportsEmbedsTest.cs


示例15: ExcelFeatureFormatter

 public ExcelFeatureFormatter(ExcelScenarioFormatter excelScenarioFormatter,
                              ExcelScenarioOutlineFormatter excelScenarioOutlineFormatter,
                              Configuration configuration,
                              ITestResults testResults)
 {
     this.excelScenarioFormatter = excelScenarioFormatter;
     this.excelScenarioOutlineFormatter = excelScenarioOutlineFormatter;
     this.configuration = configuration;
     this.testResults = testResults;
 }
开发者ID:ppnrao,项目名称:pickles,代码行数:10,代码来源:ExcelFeatureFormatter.cs


示例16: ExcelScenarioOutlineFormatter

 public ExcelScenarioOutlineFormatter(
     ExcelStepFormatter excelStepFormatter,
     ExcelTableFormatter excelTableFormatter,
     IConfiguration configuration,
     ITestResults testResults)
 {
     this.excelStepFormatter = excelStepFormatter;
     this.excelTableFormatter = excelTableFormatter;
     this.configuration = configuration;
     this.testResults = testResults;
 }
开发者ID:MikeThomas64,项目名称:pickles,代码行数:11,代码来源:ExcelScenarioOutlineFormatter.cs


示例17: HandleContentResult

 public override void HandleContentResult(string result, ITestResults results)
 {
     if (result == null)
     {
         Debug.Fail("Embeds gone");
         results.AddResult("supportsEmbeds", "Unknown");
     }
     else if (result.ToLowerInvariant().Contains("<embed"))
         results.AddResult("supportsEmbeds", YES);
     else
         results.AddResult("supportsEmbeds", NO);
 }
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:12,代码来源:SupportsEmbedsTest.cs


示例18: HtmlScenarioOutlineFormatter

 public HtmlScenarioOutlineFormatter(
     HtmlStepFormatter htmlStepFormatter,
     HtmlDescriptionFormatter htmlDescriptionFormatter,
     HtmlTableFormatter htmlTableFormatter,
     HtmlImageResultFormatter htmlImageResultFormatter,
     ITestResults testResults)
 {
     this.htmlStepFormatter = htmlStepFormatter;
     this.htmlDescriptionFormatter = htmlDescriptionFormatter;
     this.htmlTableFormatter = htmlTableFormatter;
     this.htmlImageResultFormatter = htmlImageResultFormatter;
     this.testResults = testResults;
     this.xmlns = HtmlNamespace.Xhtml;
 }
开发者ID:Jaykul,项目名称:pickles,代码行数:14,代码来源:HtmlScenarioOutlineFormatter.cs


示例19: GetSingleTestResults

        private IEnumerable<ITestResults> GetSingleTestResults(IConfiguration configuration)
        {
            ITestResults[] results;

            if (configuration.HasTestResults)
            {
                results = configuration.TestResultsFiles.Select(this.ConstructSingleTestResult).ToArray();
            }
            else
            {
                results = new ITestResults[0];
            }

            return results;
        }
开发者ID:MikeThomas64,项目名称:pickles,代码行数:15,代码来源:MultipleTestResults.cs


示例20: WordFeatureFormatter

 public WordFeatureFormatter(
     WordScenarioFormatter wordScenarioFormatter,
     WordScenarioOutlineFormatter wordScenarioOutlineFormatter,
     WordStyleApplicator wordStyleApplicator,
     WordDescriptionFormatter wordDescriptionFormatter,
     WordBackgroundFormatter wordBackgroundFormatter,
     IConfiguration configuration,
     ITestResults testResults)
 {
     this.wordScenarioFormatter = wordScenarioFormatter;
     this.wordScenarioOutlineFormatter = wordScenarioOutlineFormatter;
     this.wordStyleApplicator = wordStyleApplicator;
     this.wordDescriptionFormatter = wordDescriptionFormatter;
     this.wordBackgroundFormatter = wordBackgroundFormatter;
     this.configuration = configuration;
     this.testResults = testResults;
 }
开发者ID:picklesdoc,项目名称:pickles,代码行数:17,代码来源:WordFeatureFormatter.cs



注:本文中的ITestResults类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# ITestSite类代码示例发布时间:2022-05-24
下一篇:
C# ITestResult类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap