mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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
This commit is contained in:
@@ -38,6 +38,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||
{
|
||||
CSCodeGenerator m_cg = new CSCodeGenerator();
|
||||
|
||||
[Test]
|
||||
public void TestBadEvent()
|
||||
{
|
||||
TestHelpers.InMethod();
|
||||
// TestHelpers.EnableLogging();
|
||||
|
||||
TestCompile("default { bad() {} }", true);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestMovingEndEvent()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user