Merge pull request #188 from damageboy/exposed-handle-compat
[mono.git] / mcs / class / corlib / Test / System.Diagnostics / DebugTest.cs
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;
11
12 namespace MonoTests.System.Diagnostics
13 {
14                 [TestFixture]
15                 public class DebugTest2
16                 {
17                         [SetUp]
18                         protected void SetUp()
19                         {
20                                 Debug.Listeners.Add(new TextWriterTraceListener(Console.Error));        
21                         }
22                         
23                         [TearDown]
24                         protected void TearDown()
25                         {
26                                 
27                         }
28
29                         [Test]
30                         public void TestAssert()
31                         {
32                                 Debug.Assert(false, "Testing Assertions");
33                         }
34
35                         [Test]                  
36                         public void TestFail ()
37                         {
38                                 Debug.Fail("Testing Fail method");
39                         }
40
41                         [Test]                  
42                         public void TestWrite()
43                         {
44                                 Debug.Write("Testing Write", "Testing the output of the Write method");
45                         }
46
47                         [Test]                  
48                         public void TestWriteIf()
49                         {
50                                 Debug.WriteIf(true, "Testing WriteIf");
51                                 Debug.WriteIf(false, "Testing WriteIf", "Passed false");
52                         }
53
54                         [Test]                  
55                         public void TestWriteLine()
56                         {
57                                 Debug.WriteLine("Testing WriteLine method");
58                         }
59
60                         [Test]                  
61                         public void TestWriteLineIf()
62                         {
63                                 Debug.WriteLineIf(true, "Testing WriteLineIf");
64                                 Debug.WriteLineIf(false, "Testing WriteLineIf", "Passed false");
65                         }
66                 }
67 }