Assertion helper for compilation.
Namespace: MbUnit.Framework
Assembly: MbUnit.Framework (in MbUnit.Framework.dll)
Syntax
| C# | Visual Basic | Visual C++ |
public sealed class CompilerAssert
Public NotInheritable Class CompilerAssert
public ref class CompilerAssert sealed
Members
| All Members | Properties | Methods |
| Member | Description | |
|---|---|---|
| Compiles(ICodeCompiler, Stream) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, String) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, CompilerParameters, Stream) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, CompilerParameters, String) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, StringCollection, String) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, CompilerParameters, Stream, Boolean) |
Verifies that source compiles using the provided compiler.
| |
| Compiles(ICodeCompiler, CompilerParameters, String, Boolean) |
Verifies that source compiles using the provided compiler.
| |
| CSharpCompiler |
Gets the C# compiler from CSharpCodeProvider.
| |
| DisplayErrors(CompilerResults, TextWriter) | ||
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()() | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetHashCode()()() | Serves as a hash function for a particular type. GetHashCode()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| NotCompiles(ICodeCompiler, Stream) |
Verifies that source does not compile using the provided compiler.
| |
| NotCompiles(ICodeCompiler, String) |
Verifies that source does not compile using the provided compiler.
| |
| NotCompiles(ICodeCompiler, CompilerParameters, Stream) |
Verifies that source does not compile using the provided compiler.
| |
| NotCompiles(ICodeCompiler, CompilerParameters, String) |
Verifies that source does not compile using the provided compiler.
| |
| NotCompiles(ICodeCompiler, StringCollection, String) |
Verifies that source does not compile using the provided compiler.
| |
| ToString()()() | (Inherited from Object.) | |
| VBCompiler |
Gets the VB.NET compiler from VBCodeProvider.
|
Remarks
This class contains static helper methods to verify that snippets are compilable.
Inheritance Hierarchy
See Also
MbUnit.Framework Namespace