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
14 public class DebugTest
17 private class DebugTest1
20 protected void SetUp()
22 Debug
.Listeners
.Add(new TextWriterTraceListener(Console
.Error
));
26 protected void TearDown()
32 public void TestAssert()
34 Debug
.Assert(false, "Testing Assertions");
38 public void TestFail ()
40 Debug
.Fail("Testing Fail method");
44 public void TestWrite()
46 Debug
.Write("Testing Write", "Testing the output of the Write method");
50 public void TestWriteIf()
52 Debug
.WriteIf(true, "Testing WriteIf");
53 Debug
.WriteIf(false, "Testing WriteIf", "Passed false");
57 public void TestWriteLine()
59 Debug
.WriteLine("Testing WriteLine method");
63 public void TestWriteLineIf()
65 Debug
.WriteLineIf(true, "Testing WriteLineIf");
66 Debug
.WriteLineIf(false, "Testing WriteLineIf", "Passed false");