aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/TestHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Tests/Common/TestHelper.cs')
-rw-r--r--OpenSim/Tests/Common/TestHelper.cs50
1 files changed, 25 insertions, 25 deletions
diff --git a/OpenSim/Tests/Common/TestHelper.cs b/OpenSim/Tests/Common/TestHelper.cs
index f59c157..9dc6aa7 100644
--- a/OpenSim/Tests/Common/TestHelper.cs
+++ b/OpenSim/Tests/Common/TestHelper.cs
@@ -1,25 +1,25 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4 4
5namespace OpenSim.Tests.Common 5namespace OpenSim.Tests.Common
6{ 6{
7 public delegate void TestDelegate(); 7 public delegate void TestDelegate();
8 8
9 public class TestHelper 9 public class TestHelper
10 { 10 {
11 public static bool AssertThisDelegateCausesArgumentException(TestDelegate d) 11 public static bool AssertThisDelegateCausesArgumentException(TestDelegate d)
12 { 12 {
13 try 13 try
14 { 14 {
15 d(); 15 d();
16 } 16 }
17 catch(ArgumentException e) 17 catch(ArgumentException e)
18 { 18 {
19 return true; 19 return true;
20 } 20 }
21 21
22 return false; 22 return false;
23 } 23 }
24 } 24 }
25} 25}