Add regression test to check that specifying a non-existent event raise a syntax error

This was the case before any of the recent changes
link-sitting
Justin Clark-Casey (justincc) 2013-11-16 03:02:57 +00:00
parent 79c1ed8cb9
commit f94d07f2e2
1 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
{ {
CSCodeGenerator m_cg = new CSCodeGenerator(); CSCodeGenerator m_cg = new CSCodeGenerator();
[Test]
public void TestBadEvent()
{
TestHelpers.InMethod();
// TestHelpers.EnableLogging();
TestCompile("default { bad() {} }", true);
}
[Test] [Test]
public void TestMovingEndEvent() public void TestMovingEndEvent()
{ {