Method | Description | |
---|---|---|
CSharpTestFile ( string resourceName, bool targetCSharp6 = false ) : System.CodeDom.Compiler |
Creates a new test file using the specified resource.
|
|
Compile ( string source, bool targetCSharp6 = false ) : |
Compiles C# source code.
|
|
GetReader ( ) : TextReader |
Gets a TextReader for this test file.
|
|
GetTestFileReader ( string resourceName ) : TextReader |
Retrieves a reader for the specified resource.
|
|
GetTestFileStream ( string resourceName ) : |
Opens a test file resource stream.
|
Method | Description | |
---|---|---|
GetAssembly ( string resourceName, bool targetCSharp6 = false ) : |
Gets the assembly.
|
public CSharpTestFile ( string resourceName, bool targetCSharp6 = false ) : System.CodeDom.Compiler | ||
resourceName | string | Name of the resource. |
targetCSharp6 | bool | Set to true if C# 6 features are used. This will use the new Microsoft CodeDomCompiler, otherwise the old one is used. |
return | System.CodeDom.Compiler |
public static Compile ( string source, bool targetCSharp6 = false ) : |
||
source | string | The source. |
targetCSharp6 | bool | |
return |
public static GetTestFileReader ( string resourceName ) : TextReader | ||
resourceName | string | Name of the resource. |
return | TextReader |
public static GetTestFileStream ( string resourceName ) : |
||
resourceName | string | Name of the resource. |
return |