**** Merged from MCS ****
[mono-project.git] / mcs / class / corlib / Test / System.Diagnostics / DebugTest.cs
blob87d821454927b35f10843291852f01b017f13fe4
1 //
2 // MonoTests.System.Diagnostics.DebugTest.cs
3 //
4 // Author:
5 // John R. Hicks (angryjohn69@nc.rr.com)
6 //
7 // (C) 2002
8 using System;
9 using System.Diagnostics;
10 using NUnit.Framework;
12 namespace MonoTests.System.Diagnostics
14 public class DebugTest
16 private class DebugTest1 : TestCase
18 protected override void SetUp()
20 Debug.Listeners.Add(new TextWriterTraceListener(Console.Error));
23 protected override void TearDown()
28 public void TestAssert()
30 Debug.Assert(false, "Testing Assertions");
33 public void TestFail()
35 Debug.Fail("Testing Fail method");
38 public void TestWrite()
40 Debug.Write("Testing Write", "Testing the output of the Write method");
43 public void TestWriteIf()
45 Debug.WriteIf(true, "Testing WriteIf");
46 Debug.WriteIf(false, "Testing WriteIf", "Passed false");
49 public void TestWriteLine()
51 Debug.WriteLine("Testing WriteLine method");
54 public void TestWriteLineIf()
56 Debug.WriteLineIf(true, "Testing WriteLineIf");
57 Debug.WriteLineIf(false, "Testing WriteLineIf", "Passed false");