diff options
author | Adam Frisby | 2008-02-08 17:54:30 +0000 |
---|---|---|
committer | Adam Frisby | 2008-02-08 17:54:30 +0000 |
commit | a1625a54104da7872c15618db9e68656c6f6ec2a (patch) | |
tree | 2c9847e3085ee1c3252471af9c393a7f8265de3f /OpenSim/Tests/Common/TestHelper.cs | |
parent | * Adding console spam to help track 'The Steve Bug'. (diff) | |
download | opensim-SC_OLD-a1625a54104da7872c15618db9e68656c6f6ec2a.zip opensim-SC_OLD-a1625a54104da7872c15618db9e68656c6f6ec2a.tar.gz opensim-SC_OLD-a1625a54104da7872c15618db9e68656c6f6ec2a.tar.bz2 opensim-SC_OLD-a1625a54104da7872c15618db9e68656c6f6ec2a.tar.xz |
* Applying mantis 339 patches round 2 -- Thanks daedius
Diffstat (limited to 'OpenSim/Tests/Common/TestHelper.cs')
-rw-r--r-- | OpenSim/Tests/Common/TestHelper.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/TestHelper.cs b/OpenSim/Tests/Common/TestHelper.cs new file mode 100644 index 0000000..f59c157 --- /dev/null +++ b/OpenSim/Tests/Common/TestHelper.cs | |||
@@ -0,0 +1,25 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | |||
5 | namespace OpenSim.Tests.Common | ||
6 | { | ||
7 | public delegate void TestDelegate(); | ||
8 | |||
9 | public class TestHelper | ||
10 | { | ||
11 | public static bool AssertThisDelegateCausesArgumentException(TestDelegate d) | ||
12 | { | ||
13 | try | ||
14 | { | ||
15 | d(); | ||
16 | } | ||
17 | catch(ArgumentException e) | ||
18 | { | ||
19 | return true; | ||
20 | } | ||
21 | |||
22 | return false; | ||
23 | } | ||
24 | } | ||
25 | } | ||