本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}