public virtual void TestNoInnerException()
		{
			try
			{
				throw new CompoundException("message", null);
			}
			catch (CompoundException e)
			{
				try
				{
					PrintStream nullStream = new PrintStream(new NullOutputStream());
					Sharpen.Runtime.PrintStackTrace(e, nullStream);
					Sharpen.Runtime.PrintStackTrace(e, new PrintWriter(nullStream));
				}
				catch (Exception)
				{
					NUnit.Framework.Assert.Fail("Exception during printStackTrace for CompoundException with no inner exception");
				}
			}
		}
Example #2
0
 public OutputStreamWriter(PrintStream printStream) : base(printStream.InternalWriter.BaseStream)
 {
 }
 public OutputStreamWriter(PrintStream printStream) : base(printStream.InternalWriter.BaseStream)
 {
 }