C# Class NStub.Core.NStubCore

The NStub type represents the container class which manages the generation of testing code for the supplied System.CodeDom.CodeNamespace using the supplied implementation of NStub.Core.ICodeGenerator. The resulting files are output to the given directory.
显示文件 Open project: Jedzia/NStub Class Usage Examples

Public Methods

Method Description
GenerateCode ( ) : void

Generates the code represented by the current System.CodeDom.CodeNamespace using the current NStub.Core.ICodeGenerator.

NStubCore ( IBuildSystem buildSystem, CodeNamespace codeNamespace, string outputDirectory, ICodeGenerator codeGenerator ) : System

Initializes a new instance of the NStubCore class which will generate the given System.CodeDom.CodeNamespace to the given output directory using the given implementation of NStub.Core.ICodeGenerator.

Private Methods

Method Description
InitCodeGenerator ( ICodeGenerator codeGenerator ) : void

Initializes the given codeGenerator.

Method Details

GenerateCode() public method

Generates the code represented by the current System.CodeDom.CodeNamespace using the current NStub.Core.ICodeGenerator.
public GenerateCode ( ) : void
return void

NStubCore() public method

Initializes a new instance of the NStubCore class which will generate the given System.CodeDom.CodeNamespace to the given output directory using the given implementation of NStub.Core.ICodeGenerator.
codeNamespace, /// outputDirectory, or codeGenerator is null. outputDirectory is an /// empty string. outputDirectory /// is not a valid directory.
public NStubCore ( IBuildSystem buildSystem, CodeNamespace codeNamespace, string outputDirectory, ICodeGenerator codeGenerator ) : System
buildSystem IBuildSystem The build system.
codeNamespace System.CodeDom.CodeNamespace The code namespace which contains the types /// to be generated.
outputDirectory string The directory where the resulting /// files will be output to.
codeGenerator ICodeGenerator The code generator which will perform the /// generation.
return System