aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/TestHelper.cs
blob: 9dc6aa75020e2c17388add9b96581a89717e7f5f (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;
        }
    }
}