Fixed HttpWebRequestTest to compile with mobile NUnit.
[mono.git] / mcs / class / System / 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                         DefaultTraceListener listener = new DefaultTraceListener ();
18
19                         [SetUp]
20                         protected void SetUp()
21                         {
22                                 Debug.Listeners.Add(listener);  
23                         }
24                         
25                         [TearDown]
26                         protected void TearDown()
27                         {
28                                 Debug.Listeners.Remove (listener);      
29                         }
30
31                         [Test]
32                         public void TestAssert()
33                         {
34                                 Debug.Assert(false, "Testing Assertions");
35                         }
36
37                         [Test]                  
38                         public void TestFail ()
39                         {
40                                 Debug.Fail("Testing Fail method");
41                         }
42
43                         [Test]                  
44                         public void TestWrite()
45                         {
46                                 Debug.Write("Testing Write", "Testing the output of the Write method");
47                         }
48
49                         [Test]                  
50                         public void TestWriteIf()
51                         {
52                                 Debug.WriteIf(true, "Testing WriteIf");
53                                 Debug.WriteIf(false, "Testing WriteIf", "Passed false");
54                         }
55
56                         [Test]                  
57                         public void TestWriteLine()
58                         {
59                                 Debug.WriteLine("Testing WriteLine method");
60                         }
61
62                         [Test]                  
63                         public void TestWriteLineIf()
64                         {
65                                 Debug.WriteLineIf(true, "Testing WriteLineIf");
66                                 Debug.WriteLineIf(false, "Testing WriteLineIf", "Passed false");
67                         }
68                 }
69 }