public void ConstructWithParametersSbsBuildDataProjectGeneratorCreateGeneratorCallbackLoggerTest() { Assert.Throws<ArgumentNullException>(() => new CSharpTestProjectBuilder(null, this.buildData, this.projectGenerator, createGeneratorCallback, logger)); Assert.Throws<ArgumentNullException>(() => new CSharpTestProjectBuilder(this.sbs, null, this.projectGenerator, createGeneratorCallback, logger)); Assert.Throws<ArgumentNullException>(() => new CSharpTestProjectBuilder(this.sbs, this.buildData, null, createGeneratorCallback, logger)); Assert.Throws<ArgumentNullException>(() => new CSharpTestProjectBuilder(this.sbs, this.buildData, this.projectGenerator, null, logger)); this.testObject = new CSharpTestProjectBuilder(this.sbs, this.buildData, this.projectGenerator, createGeneratorCallback, null); }
public void TearDown() { this.testObject = null; this.mocks = null; }
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 ConstructWithParametersSbsProjectGeneratorCreateGeneratorCallbackLoggerTest() { // TODO: Implement unit test for ConstructWithParametersSbsProjectGeneratorCreateGeneratorCallbackLogger this.testObject = new TestProjectBuilder(this.sbs, this.projectGenerator, createGeneratorCallback, logger); }