2 // MonoTests.System.Diagnostics.DebugTest.cs
5 // John R. Hicks (angryjohn69@nc.rr.com)
9 using System.Diagnostics;
10 using NUnit.Framework;
12 namespace MonoTests.System.Diagnostics
15 public class DebugTest2
18 protected void SetUp()
20 Debug.Listeners.Add(new TextWriterTraceListener(Console.Error));
24 protected void TearDown()
30 public void TestAssert()
32 Debug.Assert(false, "Testing Assertions");
36 public void TestFail ()
38 Debug.Fail("Testing Fail method");
42 public void TestWrite()
44 Debug.Write("Testing Write", "Testing the output of the Write method");
48 public void TestWriteIf()
50 Debug.WriteIf(true, "Testing WriteIf");
51 Debug.WriteIf(false, "Testing WriteIf", "Passed false");
55 public void TestWriteLine()
57 Debug.WriteLine("Testing WriteLine method");
61 public void TestWriteLineIf()
63 Debug.WriteLineIf(true, "Testing WriteLineIf");
64 Debug.WriteLineIf(false, "Testing WriteLineIf", "Passed false");