In compiler regression tests, setup and teardown structures for each test to avoid any possibility of inter-test inter-ference

0.8.0.3
Justin Clark-Casey (justincc) 2014-06-18 22:46:54 +01:00 committed by Justin Clark-Casey
parent 68fcb132d9
commit 86630a9010
1 changed files with 5 additions and 1 deletions

View File

@ -64,7 +64,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
// Create the temporary directory for housing build artifacts. // Create the temporary directory for housing build artifacts.
Directory.CreateDirectory(m_testDir); Directory.CreateDirectory(m_testDir);
} }
}
[SetUp]
public void SetUp()
{
// Create a CSCodeProvider and CompilerParameters. // Create a CSCodeProvider and CompilerParameters.
m_CSCodeProvider = new CSharpCodeProvider(); m_CSCodeProvider = new CSharpCodeProvider();
m_compilerParameters = new CompilerParameters(); m_compilerParameters = new CompilerParameters();
@ -85,7 +89,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests
/// Removes the temporary build directory and any build artifacts /// Removes the temporary build directory and any build artifacts
/// inside it. /// inside it.
/// </summary> /// </summary>
[TestFixtureTearDown] [TearDown]
public void CleanUp() public void CleanUp()
{ {
System.AppDomain.CurrentDomain.AssemblyResolve -= m_resolveEventHandler; System.AppDomain.CurrentDomain.AssemblyResolve -= m_resolveEventHandler;