You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nuni...@googlegroups.com
I tried the following program with the following output. It seems the TextWriter I passed is just ignored. Is this expected behaviour?
/Johan
==================
using System; using System.IO; using NUnit.Framework;
namespace nunitlitetest { [TestFixture] public class MainClass { public static void Main (string[] args) { var sw = new StringWriter(); new NUnitLite.Runner.TextUI(sw).Execute(args); Console.WriteLine("sw = \"" + sw + "\" (length = " + sw.ToString().Length + ")"); }
[Test] public void MyTestMethod() { Assert.That(1, Is.EqualTo(2)); } } }
======================
NUnitLite 0.7.0 () Copyright 2012, Charlie Poole
Runtime Environment - OS Version: Unix 2.6.38.11 Mono Version: 4.0.30319.1
1 Tests : 0 Failures, 0 Errors, 0 Not Run sw = "" (length = 0)
Charlie Poole
unread,
Jul 23, 2012, 11:08:55 AM7/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nuni...@googlegroups.com
Definitely a bug! The runner seems to be overwriting the provided TextWriter
and using Console directly. The expected behavior is that your StringWriter
should be used unless you run with -out:<filename> on the command line.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to nuni...@googlegroups.com
As it's critical, I filed a bug. Generally, it's a big help to the
developers if folks file bugs on the problems they find and
participate in their resolution by running tests.