aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/TestHelper.cs
blob: f59c1575c08a0a4d65f2fb9ee96ee9b9f67b5f75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Collections.Generic;
using System.Text;

namespace OpenSim.Tests.Common
{
    public delegate void TestDelegate();

    public class TestHelper
    {
        public static bool AssertThisDelegateCausesArgumentException(TestDelegate d)
        {
            try
            {
                d();
            }
            catch(ArgumentException e)
            {
                return true;
            }

            return false;
        }
    }
}