public TextUI(ExtendedTextWriter writer) { _outWriter = writer; }
public TextUI(ExtendedTextWriter writer, NUnitLiteOptions options) { _options = options; _outWriter = writer ?? new ColorConsoleWriter(!options.NoColor); }
public int Execute(ExtendedTextWriter writer, TextReader reader, string[] args) { var options = new NUnitLiteOptions(args); var textUI = new TextUI(writer, reader, options); return Execute(textUI, options); }
public int Execute(ExtendedTextWriter writer, TextReader reader, NUnitLiteOptions options) { var textUI = new TextUI(writer, reader, options); return Execute(textUI, options); }
public int Execute(ExtendedTextWriter writer, TextReader reader, string[] args) { return Execute(writer, reader, new NUnitLiteOptions(args)); }
/// <summary> /// Execute the tests in the assembly, passing in /// a list of arguments, a test assembly a writer /// and a reader. For use in builds for runtimes /// that don't support Assembly.GetCallingAssembly(). /// </summary> /// <param name="args">Arguments passed to NUnitLite</param> /// <param name="writer">An ExtendedTextWriter to which output will be written</param> /// <param name="reader">A TextReader used when waiting for input</param> public int Execute(string[] args, ExtendedTextWriter writer, TextReader reader) { return new TextRunner(_testAssembly).Execute(writer, reader, args); }
public TextUI(ExtendedTextWriter writer) #if SILVERLIGHT || PORTABLE : this(writer, null, new NUnitLiteOptions()) { }
public TextUI(ExtendedTextWriter writer, TextReader reader) : this(writer, reader, new NUnitLiteOptions()) { }
public TextUI(ExtendedTextWriter writer, TextReader reader, NUnitLiteOptions options) { _options = options; _writer = writer; _reader = reader; }