public NUnitOutputTextWriter(BaseTouchRunner runner, TextWriter baseWriter, OutputWriter xmlWriter)
 {
     Runner          = runner;
     BaseWriter      = baseWriter ?? Console.Out;
     XmlOutputWriter = xmlWriter;
     // do not send real-time test results on the writer sif XML reports are enabled
     real_time_reporting = (xmlWriter == null);
 }
Esempio n. 2
0
    static partial void AddTestAssembliesImpl(BaseTouchRunner runner)
    {
        var assemblies = new HashSet <Assembly> ();

        // Test files are sorted by namespace, so since we have two assemblies,
        // pick something at the top (Mono) and at the bottom (System.Text) to
        // make sure we get both assemblies.
        assemblies.Add(typeof(MonoTests.Mono.DataConverterTest).Assembly);
        assemblies.Add(typeof(MonoTests.System.Text.UTF8EncodingTest).Assembly);
        if (assemblies.Count != 2)
        {
            throw new Exception("Should have found two test assemblies");
        }
        foreach (var asm in assemblies)
        {
            runner.Add(asm);
        }
    }
Esempio n. 3
0
 public static void AddTestAssemblies(BaseTouchRunner runner)
 {
     AddTestAssembliesImpl(runner);
 }
Esempio n. 4
0
 static partial void AddTestAssembliesImpl(BaseTouchRunner runner);
Esempio n. 5
0
 public NUnitOutputTextWriter(BaseTouchRunner runner, TextWriter baseWriter, OutputWriter xmlWriter)
     : this(runner, baseWriter, xmlWriter, XmlMode.Default)
 {
 }
Esempio n. 6
0
 static partial void AddTestAssembliesImpl(BaseTouchRunner runner)
 {
     runner.Add(typeof(Xamarin.BindingTests2.BindingTest).Assembly);
     runner.Add(typeof(Xamarin.BindingTests.ProtocolTest).Assembly);
 }