C# 클래스 NStub.CSharp.MbUnitRhinoMocks.CSharpMbUnitRhinoMocksCodeGenerator

The CSharpMbUnitRhinoMocksCodeGenerator is responsible for the generation of the individual class files with MbUnit and Rhino.Mocks support which will make up the actual test project. For information regarding the generation of the project file, see CSharpProjectGenerator"> and
상속: NStub.CSharp.MbUnit.CSharpMbUnitCodeGenerator
파일 보기 프로젝트 열기: Jedzia/NStub

공개 메소드들

메소드 설명
CSharpMbUnitRhinoMocksCodeGenerator ( IBuildSystem buildSystem, CodeNamespace codeNamespace, IMemberBuilderFactory testBuilders, ICodeGeneratorParameters configuration ) : System

Initializes a new instance of the CSharpMbUnitRhinoMocksCodeGenerator class based the given CodeNamespace which will output to the given directory.

보호된 메소드들

메소드 설명
ComposeTestSetupMockery ( ISetupAndTearDownCreationContext context, CodeMemberField testObjectMemberField, string testObjectName ) : IEnumerable

Compose additional items of the test setup method.

GenerateSetupAndTearDownAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, CodeMemberField testObjectMemberField ) : void

Generates the setup and tear down additional members and fields.

비공개 메소드들

메소드 설명
AddMockObject ( CodeTypeMember mockRepositoryMemberField, string paraTypeFullName, string paraName ) : CodeAssignStatement
AddMockRepository ( CodeTypeDeclaration testClassDeclaration, CodeMemberMethod setUpMethod, string paraName ) : CodeMemberField

Adds the mock repository.

CreateMocker ( CodeTypeDeclaration testClassDeclaration, CodeMemberMethod setUpMethod, CodeMemberField mockRepositoryMemberField, List mockAssignments, Type paraType, string paraName, ConstructorAssignment data ) : void

메소드 상세

CSharpMbUnitRhinoMocksCodeGenerator() 공개 메소드

Initializes a new instance of the CSharpMbUnitRhinoMocksCodeGenerator class based the given CodeNamespace which will output to the given directory.
or /// is null. is an /// empty string. /// cannot be found.
public CSharpMbUnitRhinoMocksCodeGenerator ( IBuildSystem buildSystem, CodeNamespace codeNamespace, IMemberBuilderFactory testBuilders, ICodeGeneratorParameters configuration ) : System
buildSystem IBuildSystem The build system.
codeNamespace System.CodeDom.CodeNamespace The code namespace.
testBuilders IMemberBuilderFactory The test builder repository.
configuration ICodeGeneratorParameters The configuration of the generator.
리턴 System

ComposeTestSetupMockery() 보호된 메소드

Compose additional items of the test setup method.
protected ComposeTestSetupMockery ( ISetupAndTearDownCreationContext context, CodeMemberField testObjectMemberField, string testObjectName ) : IEnumerable
context ISetupAndTearDownCreationContext The setup context.
testObjectMemberField System.CodeDom.CodeMemberField The member field of the object under test.
testObjectName string The name of the object under test.
리턴 IEnumerable

GenerateSetupAndTearDownAdditional() 보호된 메소드

Generates the setup and tear down additional members and fields.
protected GenerateSetupAndTearDownAdditional ( ISetupAndTearDownCreationContext context, string testObjectName, CodeMemberField testObjectMemberField ) : void
context ISetupAndTearDownCreationContext Contains data specific to SetUp and TearDown test-method generation.
testObjectName string Name of the test object.
testObjectMemberField System.CodeDom.CodeMemberField The test object member field.
리턴 void