C# Class Mono.Cecil.Tests.BaseTestFixture

Mostra file Open project: jbevain/cecil Class Usage Examples

Public Methods

Method Description
AssertCode ( string expected, MethodDefinition method ) : void
FindResourcesDirectory ( Assembly assembly ) : string
GetAssemblyResourcePath ( string name, Assembly assembly ) : string
GetCSharpResourcePath ( string name, Assembly assembly ) : string
GetCurrentModule ( ) : ModuleDefinition
GetCurrentModule ( ReaderParameters parameters ) : ModuleDefinition
GetILResourcePath ( string name, Assembly assembly ) : string
GetResourceModule ( string name ) : ModuleDefinition
GetResourceModule ( string name, ReaderParameters parameters ) : ModuleDefinition
GetResourceModule ( string name, ReadingMode mode ) : ModuleDefinition
GetResourcePath ( string name, Assembly assembly ) : string
TestCSharp ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void
TestIL ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void
TestModule ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void

Protected Methods

Method Description
IgnoreOnMono ( ) : void

Private Methods

Method Description
GetResourceImage ( string name ) : Image
Normalize ( string str ) : string
Run ( TestCase testCase ) : void

Method Details

AssertCode() public static method

public static AssertCode ( string expected, MethodDefinition method ) : void
expected string
method MethodDefinition
return void

FindResourcesDirectory() public static method

public static FindResourcesDirectory ( Assembly assembly ) : string
assembly System.Reflection.Assembly
return string

GetAssemblyResourcePath() public static method

public static GetAssemblyResourcePath ( string name, Assembly assembly ) : string
name string
assembly System.Reflection.Assembly
return string

GetCSharpResourcePath() public static method

public static GetCSharpResourcePath ( string name, Assembly assembly ) : string
name string
assembly System.Reflection.Assembly
return string

GetCurrentModule() public method

public GetCurrentModule ( ) : ModuleDefinition
return ModuleDefinition

GetCurrentModule() public method

public GetCurrentModule ( ReaderParameters parameters ) : ModuleDefinition
parameters ReaderParameters
return ModuleDefinition

GetILResourcePath() public static method

public static GetILResourcePath ( string name, Assembly assembly ) : string
name string
assembly System.Reflection.Assembly
return string

GetResourceModule() public method

public GetResourceModule ( string name ) : ModuleDefinition
name string
return ModuleDefinition

GetResourceModule() public method

public GetResourceModule ( string name, ReaderParameters parameters ) : ModuleDefinition
name string
parameters ReaderParameters
return ModuleDefinition

GetResourceModule() public method

public GetResourceModule ( string name, ReadingMode mode ) : ModuleDefinition
name string
mode ReadingMode
return ModuleDefinition

GetResourcePath() public static method

public static GetResourcePath ( string name, Assembly assembly ) : string
name string
assembly System.Reflection.Assembly
return string

IgnoreOnMono() protected static method

protected static IgnoreOnMono ( ) : void
return void

TestCSharp() public static method

public static TestCSharp ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void
file string
test Action
verify bool
readOnly bool
symbolReaderProvider System.Type
symbolWriterProvider System.Type
assemblyResolver IAssemblyResolver
applyWindowsRuntimeProjections bool
return void

TestIL() public static method

public static TestIL ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void
file string
test Action
verify bool
readOnly bool
symbolReaderProvider System.Type
symbolWriterProvider System.Type
assemblyResolver IAssemblyResolver
applyWindowsRuntimeProjections bool
return void

TestModule() public static method

public static TestModule ( string file, Action test, bool verify = true, bool readOnly = false, Type symbolReaderProvider = null, Type symbolWriterProvider = null, IAssemblyResolver assemblyResolver = null, bool applyWindowsRuntimeProjections = false ) : void
file string
test Action
verify bool
readOnly bool
symbolReaderProvider System.Type
symbolWriterProvider System.Type
assemblyResolver IAssemblyResolver
applyWindowsRuntimeProjections bool
return void