C# Class BooCompiler.Tests.AbstractCompilerTestCase

Show file Open project: boo/boo-lang

Protected Properties

Property Type Description
_baseTestCasesPath string
_compiler Boo.Lang.Compiler.BooCompiler
_output System.IO.StringWriter
_parameters Boo.Lang.Compiler.CompilerParameters

Public Methods

Method Description
CopyAssembly ( System assembly ) : void
CopyAssembly ( string location ) : void

Protected Methods

Method Description
CopyAssembliesFromTestCasePath ( ) : void
CopyDependencies ( ) : void
CustomizeCompilerParameters ( ) : void
GetRelativeTestCasesPath ( ) : string
GetTestCasePath ( string fname ) : string
InstallAssemblyResolver ( string path ) : System.ResolveEventHandler
RemoveAssemblyResolver ( System handler ) : void
Run ( string stdin, CompilerContext &context ) : string
RunAndAssert ( ) : void
RunCompilerTestCase ( string name ) : void
RunMultiFileTestCase ( ) : void
RunString ( string code ) : string
RunString ( string code, string stdin ) : string
SetUpCompilerPipeline ( ) : CompilerPipeline

Override in derived classes to use a different pipeline.

Private Methods

Method Description
GetEnvironmentFlag ( string name, bool defaultValue ) : bool
GetFirstInputName ( CompilerContext context ) : string
HasErrors ( CompilerContext context ) : bool
SetUpFixture ( ) : void
SetUpTest ( ) : void
TearDownFixture ( ) : void

Method Details

CopyAssembliesFromTestCasePath() protected method

protected CopyAssembliesFromTestCasePath ( ) : void
return void

CopyAssembly() public method

public CopyAssembly ( System assembly ) : void
assembly System
return void

CopyAssembly() public method

public CopyAssembly ( string location ) : void
location string
return void

CopyDependencies() protected method

protected CopyDependencies ( ) : void
return void

CustomizeCompilerParameters() protected method

protected CustomizeCompilerParameters ( ) : void
return void

GetRelativeTestCasesPath() protected method

protected GetRelativeTestCasesPath ( ) : string
return string

GetTestCasePath() protected method

protected GetTestCasePath ( string fname ) : string
fname string
return string

InstallAssemblyResolver() protected method

protected InstallAssemblyResolver ( string path ) : System.ResolveEventHandler
path string
return System.ResolveEventHandler

RemoveAssemblyResolver() protected method

protected RemoveAssemblyResolver ( System handler ) : void
handler System
return void

Run() protected method

protected Run ( string stdin, CompilerContext &context ) : string
stdin string
context Boo.Lang.Compiler.CompilerContext
return string

RunAndAssert() protected method

protected RunAndAssert ( ) : void
return void

RunCompilerTestCase() protected method

protected RunCompilerTestCase ( string name ) : void
name string
return void

RunMultiFileTestCase() protected method

protected RunMultiFileTestCase ( ) : void
return void

RunString() protected method

protected RunString ( string code ) : string
code string
return string

RunString() protected method

protected RunString ( string code, string stdin ) : string
code string
stdin string
return string

SetUpCompilerPipeline() protected method

Override in derived classes to use a different pipeline.
protected SetUpCompilerPipeline ( ) : CompilerPipeline
return Boo.Lang.Compiler.CompilerPipeline

Property Details

_baseTestCasesPath protected property

protected string _baseTestCasesPath
return string

_compiler protected property

protected BooCompiler,Boo.Lang.Compiler _compiler
return Boo.Lang.Compiler.BooCompiler

_output protected property

protected StringWriter,System.IO _output
return System.IO.StringWriter

_parameters protected property

protected CompilerParameters,Boo.Lang.Compiler _parameters
return Boo.Lang.Compiler.CompilerParameters