Ejemplo n.º 1
0
 public void SetUp()
 {
     logText                      = string.Empty;
     this.mocks                   = new MockRepository();
     this.sbs                     = this.mocks.StrictMock <NStub.Core.IBuildSystem>();
     this.projectGenerator        = this.mocks.StrictMock <NStub.Core.IProjectGenerator>();
     this.createGeneratorCallback = this.mocks.StrictMock <Func <IBuildSystem, ICodeGeneratorParameters, CodeNamespace, ICodeGenerator> >();
     this.logger                  = this.mocks.StrictMock <Action <string> >();
     // this.logger = text => { this.logText += text; };
     this.testObject = new TestProjectBuilder(this.sbs, this.projectGenerator, createGeneratorCallback, logger);
 }
Ejemplo n.º 2
0
 public void SetUp()
 {
     logText            = string.Empty;
     this.mocks         = new MockRepository();
     this.buildData     = new BuildDataDictionary();
     this.buildDataItem = new BuilderData <string>("Whuut? ...Data?");
     this.buildData.AddDataItem("MyKey", this.buildDataItem);
     this.sbs = this.mocks.StrictMock <NStub.Core.IBuildSystem>();
     this.projectGenerator        = this.mocks.StrictMock <NStub.Core.IProjectGenerator>();
     this.createGeneratorCallback = this.mocks.StrictMock <Func <IBuildSystem, IBuildDataDictionary, ICodeGeneratorParameters, CodeNamespace, ICodeGenerator> >();
     this.logger = this.mocks.StrictMock <Action <string> >();
     // this.logger = text => { this.logText += text; };
     this.testObject = new CSharpTestProjectBuilder(this.sbs, this.buildData, this.projectGenerator, createGeneratorCallback, logger);
 }
Ejemplo n.º 3
0
 public void SetUp()
 {
     logText = string.Empty;
     this.mocks = new MockRepository();
     this.buildData = new BuildDataDictionary();
     this.buildDataItem = new BuilderData<string>("Whuut? ...Data?");
     this.buildData.AddDataItem("MyKey", this.buildDataItem);
     this.sbs = this.mocks.StrictMock<NStub.Core.IBuildSystem>();
     this.projectGenerator = this.mocks.StrictMock<NStub.Core.IProjectGenerator>();
     this.createGeneratorCallback = this.mocks.StrictMock<Func<IBuildSystem, IBuildDataDictionary, ICodeGeneratorParameters, CodeNamespace, ICodeGenerator>>();
     this.logger = this.mocks.StrictMock<Action<string>>();
     // this.logger = text => { this.logText += text; };
     this.testObject = new CSharpTestProjectBuilder(this.sbs, this.buildData, this.projectGenerator, createGeneratorCallback, logger);
 }
Ejemplo n.º 4
0
 public void SetUp()
 {
     logText = string.Empty;
     this.mocks = new MockRepository();
     this.sbs = this.mocks.StrictMock<NStub.Core.IBuildSystem>();
     this.projectGenerator = this.mocks.StrictMock<NStub.Core.IProjectGenerator>();
     this.createGeneratorCallback = this.mocks.StrictMock<Func<IBuildSystem, ICodeGeneratorParameters, CodeNamespace, ICodeGenerator>>();
     this.logger = this.mocks.StrictMock<Action<string>>();
     // this.logger = text => { this.logText += text; };
     this.testObject = new TestProjectBuilder(this.sbs, this.projectGenerator, createGeneratorCallback, logger);
 }