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


C# Runner.ContainsTestsFor方法代码示例

本文整理汇总了C#中Runner.ContainsTestsFor方法的典型用法代码示例。如果您正苦于以下问题:C# Runner.ContainsTestsFor方法的具体用法?C# Runner.ContainsTestsFor怎么用?C# Runner.ContainsTestsFor使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Runner的用法示例。


在下文中一共展示了Runner.ContainsTestsFor方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Should_identify_test_container

 public void Should_identify_test_container()
 {
     var runner = new Runner();
     var assembly = getPath("AutoTest.TestRunners.XUnit.Tests.TestResource.dll");
     var cls = "AutoTest.TestRunners.XUnit.Tests.TestResource.Class1";
     Assert.That(runner.ContainsTestsFor(assembly, cls), Is.True);
 }
开发者ID:rlarno,项目名称:AutoTest.Net,代码行数:7,代码来源:RunnerTests.cs

示例2: When_passed_a_class_containing_mspec_test_fields_it_will_report_that_it_can_handle_it

 public void When_passed_a_class_containing_mspec_test_fields_it_will_report_that_it_can_handle_it()
 {
     var runner = new Runner();
     Assert.That(runner.ContainsTestsFor(getAssembly(), "AutoTest.TestRunners.MSpec.Tests.TestResource.Can_add_numbers"), Is.True);
 }
开发者ID:JamesTryand,项目名称:AutoTest.Net,代码行数:5,代码来源:Can_recognize_mspec.cs

示例3: When_handed_an_assembly_that_contains_mspec_tests_it_will_report_that_it_can_handle_the_assembly

 public void When_handed_an_assembly_that_contains_mspec_tests_it_will_report_that_it_can_handle_the_assembly()
 {
     var runner = new Runner();
     Assert.That(runner.ContainsTestsFor(getAssembly()), Is.True);
 }
开发者ID:JamesTryand,项目名称:AutoTest.Net,代码行数:5,代码来源:Can_recognize_mspec.cs

示例4: Should_contain_tests_for

 public void Should_contain_tests_for()
 {
     var runner = new Runner();
     var assembly = getPath("AutoTest.TestRunners.XUnit.Tests.TestResource.dll");
     Assert.That(runner.ContainsTestsFor(assembly), Is.True);
 }
开发者ID:rlarno,项目名称:AutoTest.Net,代码行数:6,代码来源:RunnerTests.cs

示例5: When_passed_a_class_containing_simpletesting_test_fields_it_will_report_that_it_can_handle_it

 public void When_passed_a_class_containing_simpletesting_test_fields_it_will_report_that_it_can_handle_it()
 {
     var runner = new Runner();
     Assert.That(runner.ContainsTestsFor(getAssembly(), "AutoTest.TestRunners.SimpleTesting.Tests.Resources.SimpleTestingTests"), Is.True);
 }
开发者ID:Vernathic,项目名称:ic-AutoTest.NET4CTDD,代码行数:5,代码来源:Can_recognize_simpletesting.cs

示例6: Should_find_tests_inherited_from_abstract_classes

 public void Should_find_tests_inherited_from_abstract_classes()
 {
     var assemblyPath = Path.GetFullPath(@"AutoTest.TestRunners.MSTest.Tests.TestResource.dll");
     var runner = new Runner();
     Assert.That(runner.ContainsTestsFor(assemblyPath, "AutoTest.TestRunners.MSTest.Tests.TestResource.InheritingFromAbstractClass"), Is.True);
 }
开发者ID:Vernathic,项目名称:ic-AutoTest.NET4CTDD,代码行数:6,代码来源:RunnerTests.cs

示例7: Should_not_find_tests_on_abstract_classes

 public void Should_not_find_tests_on_abstract_classes()
 {
     var assemblyPath = Path.GetFullPath(@"AutoTest.TestRunners.MSTest.Tests.TestResource.dll");
     var runner = new Runner();
     Assert.That(runner.ContainsTestsFor(assemblyPath, "AutoTest.TestRunners.MSTest.Tests.TestResource.AbstractClass"), Is.False);
 }
开发者ID:Vernathic,项目名称:ic-AutoTest.NET4CTDD,代码行数:6,代码来源:RunnerTests.cs


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