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


C# Runner.IsTest方法代码示例

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


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

示例1: Should_identify_test

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

示例2: When_handed_a_non_mspec_test_it_will_not_recognize_it

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

示例3: I_can_haz_mspec_test

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

示例4: When_handed_a_non_simpletesting_test_it_will_not_recognize_it

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

示例5: I_can_haz_simpletesting_test

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

示例6: Should_not_detect_test_on_abstract_classes

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


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