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