public void RunTestWithDummyClassShouldReturnCollectionWithOneSuccessfullResult() { TestCase testCase = new TestCase { ClassName = "Moya.Dummy.Test.Project.TestClass", MethodName = "OnlyWarmupMethod", FilePath = GetMoyaDummyTestProjectDllPath() }; var testResult = testCaseExecuter.RunTest(testCase); Assert.Equal(1, testResult.Count(x => x.Outcome == TestOutcome.Success)); Assert.Equal(TestOutcome.Success, testResult.First().Outcome); }
private static void ConfigureTestProject(ITestCaseExecuter testCaseExecuter) { TestCase testCase = new TestCase { ClassName = "Moya.Dummy.Test.Project.Configuration", MethodName = "Configure", FilePath = GetMoyaDummyTestProjectDllPath() }; testCaseExecuter.RunTest(testCase); }