mirror of
https://github.com/opensim/opensim.git
synced 2026-06-24 07:15:45 +08:00
26 lines
478 B
C#
26 lines
478 B
C#
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;
|
|
}
|
|
}
|
|
}
|