Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
		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;
			}
		}