public void SetUp() { _testEnvironment = CustomScriptTestEnvironment.Init(TestScript.SetFilenameInPreConversionCreateBackUpInPostConversion); _file = Substitute.For <IFile>(); _file.Exists(Arg.Any <string>()).Returns(true); _customScriptLoader = new CsScriptLoader(_file, _testEnvironment.AssemblyHelper); }
public static CustomScriptTestEnvironment Init(TestScript testScript) { var environment = new CustomScriptTestEnvironment(); environment.CleanUp(); environment.ScriptFilename = GetTestScriptFilename(testScript); environment.CopyTestScriptFormSourceToCurrentAssembly(); return(environment); }