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); }
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); }
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); }
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); }