public void RunTestCases(TestAssembly testAssembly, string[] testCaseStrings, IMessageSink messageSink, ITestFrameworkExecutionOptions options)
        {
            var runner = new XunitTestAssemblyRunner(
                Deproxify(testAssembly),
                testCaseStrings.Select(Deserialize),
                messageSink, messageSink, options);

            runner.RunAsync().Ignore();
        }
Exemple #2
0
 protected override async void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
 {
     TestInitalization.Initialize();
     try
     {
         using (XunitTestAssemblyRunner testAssemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
         {
             RunSummary runSummary = await testAssemblyRunner.RunAsync();
         }
     }
     finally
     {
         TestInitalization.Terminate();
     }
 }
        protected override void RunTestCases(IEnumerable <IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
        {
            var bddScopeAttribute = GetLightBddScopeAttribute();

            bddScopeAttribute?.SetUp();
            try
            {
                using (var assemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
                    assemblyRunner.RunAsync().Wait();
            }
            finally
            {
                bddScopeAttribute?.TearDown();
            }
        }
 protected override async void RunTestCases(IEnumerable<IXunitTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions)
 {
     TestInitalization.Initialize();
     try
     {
         using (XunitTestAssemblyRunner testAssemblyRunner = new XunitTestAssemblyRunner(TestAssembly, testCases, DiagnosticMessageSink, executionMessageSink, executionOptions))
         {
             RunSummary runSummary = await testAssemblyRunner.RunAsync();
         }
     }
     finally
     {
         TestInitalization.Terminate();
     }
 }