Exemple #1
0
 public TextUI(ExtendedTextWriter writer)
 {
     _outWriter = writer;
 }
Exemple #2
0
 public TextUI(ExtendedTextWriter writer, NUnitLiteOptions options)
 {
     _options = options;
     _outWriter = writer ?? new ColorConsoleWriter(!options.NoColor);
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public int Execute(ExtendedTextWriter writer, TextReader reader, NUnitLiteOptions options)
 {
     var textUI = new TextUI(writer, reader, options);
     return Execute(textUI, options);
 }
Exemple #5
0
 public int Execute(ExtendedTextWriter writer, TextReader reader, string[] args)
 {
     return Execute(writer, reader, new NUnitLiteOptions(args));
 }
Exemple #6
0
 /// <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);
 }
Exemple #7
0
        public TextUI(ExtendedTextWriter writer)
#if SILVERLIGHT || PORTABLE
            : this(writer, null, new NUnitLiteOptions()) { }
Exemple #8
0
 public TextUI(ExtendedTextWriter writer, TextReader reader)
     : this(writer, reader, new NUnitLiteOptions()) { }
Exemple #9
0
 public TextUI(ExtendedTextWriter writer, TextReader reader, NUnitLiteOptions options)
 {
     _options = options;
     _writer = writer;
     _reader = reader;
 }