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