当前位置: 首页>>代码示例>>C#>>正文


C# ITestResults类代码示例

本文整理汇总了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);
     }
 }
开发者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


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