private static ITest GetITest(Assembly assembly, string commandLineOptions) { // we should control what `options` holds var options = new NUnitLiteOptions(commandLineOptions.Split(' ')); var builder = new DefaultTestAssemblyBuilder(); var runSettings = TextRunner.MakeRunSettings(options); return(builder.Build(assembly, runSettings)); }
IEnumerable <TestAssembly> GetTestSuites() { var builder = new DefaultTestAssemblyBuilder(); var settings = new Dictionary <string, object>(); foreach (var assembly in ((TestApplication)TestApplication.Instance).TestAssemblies) { yield return(builder.Build(assembly, settings) as TestAssembly); } }
IEnumerable<TestAssembly> GetTestSuites() { var builder = new DefaultTestAssemblyBuilder(); var settings = new Dictionary<string, object>(); foreach (var assembly in ((TestApplication)TestApplication.Instance).TestAssemblies) { yield return builder.Build(assembly, settings) as TestAssembly; } }