Remove some mono warnings in script tests, chiefly where SetUp() wasn't properly calling to OpenSimTestCase.SetUp()
parent
5ba99cbf55
commit
66982c8a59
|
@ -57,8 +57,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
protected XEngine.XEngine m_engine;
|
protected XEngine.XEngine m_engine;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public override void SetUp()
|
||||||
{
|
{
|
||||||
|
base.SetUp();
|
||||||
|
|
||||||
IConfigSource initConfigSource = new IniConfigSource();
|
IConfigSource initConfigSource = new IniConfigSource();
|
||||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||||
config.Set("Enabled", "true");
|
config.Set("Enabled", "true");
|
||||||
|
|
|
@ -62,8 +62,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
protected XEngine.XEngine m_engine;
|
protected XEngine.XEngine m_engine;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public override void SetUp()
|
||||||
{
|
{
|
||||||
|
base.SetUp();
|
||||||
|
|
||||||
IConfigSource initConfigSource = new IniConfigSource();
|
IConfigSource initConfigSource = new IniConfigSource();
|
||||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||||
config.Set("Enabled", "true");
|
config.Set("Enabled", "true");
|
||||||
|
|
|
@ -51,8 +51,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
private LSL_Api m_lslApi;
|
private LSL_Api m_lslApi;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public override void SetUp()
|
||||||
{
|
{
|
||||||
|
base.SetUp();
|
||||||
|
|
||||||
IConfigSource initConfigSource = new IniConfigSource();
|
IConfigSource initConfigSource = new IniConfigSource();
|
||||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||||
config.Set("Enabled", "true");
|
config.Set("Enabled", "true");
|
||||||
|
|
|
@ -57,8 +57,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
protected XEngine.XEngine m_engine;
|
protected XEngine.XEngine m_engine;
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public override void SetUp()
|
||||||
{
|
{
|
||||||
|
base.SetUp();
|
||||||
|
|
||||||
IConfigSource initConfigSource = new IniConfigSource();
|
IConfigSource initConfigSource = new IniConfigSource();
|
||||||
IConfig config = initConfigSource.AddConfig("XEngine");
|
IConfig config = initConfigSource.AddConfig("XEngine");
|
||||||
config.Set("Enabled", "true");
|
config.Set("Enabled", "true");
|
||||||
|
|
|
@ -127,12 +127,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
OSSL_Api osslApi = new OSSL_Api();
|
OSSL_Api osslApi = new OSSL_Api();
|
||||||
osslApi.Initialize(m_engine, so.RootPart, null);
|
osslApi.Initialize(m_engine, so.RootPart, null);
|
||||||
|
|
||||||
string npcRaw;
|
|
||||||
bool gotExpectedException = false;
|
bool gotExpectedException = false;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
npcRaw
|
osslApi.osNpcCreate("Jane", "Doe", new LSL_Types.Vector3(128, 128, 128), "not existing notecard name");
|
||||||
= osslApi.osNpcCreate("Jane", "Doe", new LSL_Types.Vector3(128, 128, 128), "not existing notecard name");
|
|
||||||
}
|
}
|
||||||
catch (ScriptException)
|
catch (ScriptException)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue