public TestCaseBulkDeserializerTests() { var sourceInformationProvider = new NullSourceInformationProvider(); var diagnosticMessageSink = new Xunit.NullMessageSink(); var assembly = typeof(TestCaseBulkDeserializerTests).Assembly; var assemblyInfo = Reflector.Wrap(assembly); discoverer = new XunitTestFrameworkDiscoverer(assemblyInfo, sourceInformationProvider, diagnosticMessageSink); executor = new XunitTestFrameworkExecutor(assembly.GetName(), sourceInformationProvider, diagnosticMessageSink); }
private static void TestAssembly(Assembly assembly) { var messageSink = new ConsoleMessageSink(); var assemblyInfo = new ReflectionAssemblyInfo(assembly); var framework = new XunitTestFramework(messageSink); var executor = new XunitTestFrameworkExecutor(assembly.GetName(), new NullSourceInformationProvider(), messageSink); var executionOptions = TestFrameworkOptions.ForExecution(); var discoveryOptions = TestFrameworkOptions.ForDiscovery(); executor.RunAll(messageSink, discoveryOptions, executionOptions); messageSink.Finished.WaitOne(); }