Exemple #1
0
 public void ConstructWithParametersBuildDataCodeNamespaceTestClassDeclarationSetUpMethodTearDownMethodCreatorTest()
 {
     // TODO: Implement unit test for ConstructWithParametersBuildDataCodeNamespaceTestClassDeclarationSetUpMethodTearDownMethodCreator
     this.buildData            = new NStub.CSharp.ObjectGeneration.BuildDataDictionary();
     this.codeNamespace        = new System.CodeDom.CodeNamespace();
     this.testClassDeclaration = new System.CodeDom.CodeTypeDeclaration();
     this.setUpMethod          = new System.CodeDom.CodeMemberMethod();
     this.tearDownMethod       = new System.CodeDom.CodeMemberMethod();
     this.testObject           = new SetupAndTearDownContext(this.buildData, this.codeNamespace, this.testClassDeclaration, this.setUpMethod, this.tearDownMethod, creator);
 }
Exemple #2
0
 public void SetUp()
 {
     this.buildData            = new NStub.CSharp.ObjectGeneration.BuildDataDictionary();
     this.codeNamespace        = new System.CodeDom.CodeNamespace();
     this.testClassDeclaration = new System.CodeDom.CodeTypeDeclaration();
     this.setUpMethod          = new System.CodeDom.CodeMemberMethod();
     this.tearDownMethod       = new System.CodeDom.CodeMemberMethod();
     this.mocks      = new MockRepository();
     this.creator    = this.mocks.StrictMock <NStub.CSharp.ObjectGeneration.ITestObjectComposer>();
     this.testObject = new SetupAndTearDownContext(this.buildData, this.codeNamespace, this.testClassDeclaration, this.setUpMethod, this.tearDownMethod, this.creator);
 }