public void CanBuild_WithMissingComponents_IsTrue() { var pipeline = new TestBuildPipelineWithMissingComponents(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.CanBuild(config).Result, Is.True); }
public void CanRun_WithMissingComponents_IsFalse() { var pipeline = new TestBuildPipelineWithMissingComponents(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.Build(config).Succeeded, Is.False); Assert.That(pipeline.CanRun(config).Result, Is.False); }
public void BuildIncremental_WithMissingComponents_Fails() { var pipeline = new TestBuildPipelineWithMissingComponents(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.CanBuild(config).Result, Is.True); using (var process = pipeline.BuildIncremental(config)) { while (process.Update()) { } Assert.That(process.Result.Succeeded, Is.False); } }