public void CanRun_WithoutBuild_IsFalse() { var pipeline = new TestBuildPipeline(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.CanRun(config).Result, Is.False); }
public void CanRun_IsTrue() { var pipeline = new TestBuildPipeline(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.Build(config).Succeeded, Is.True); Assert.That(pipeline.CanRun(config).Result, Is.True); }
public void Run_WithoutBuild_Fails() { var pipeline = new TestBuildPipeline(); var config = BuildConfiguration.CreateInstance(); Assert.That(pipeline.CanRun(config).Result, Is.False); using (var result = pipeline.Run(config)) { Assert.That(result.Succeeded, Is.False); } }
public void CanRun_WithoutConfig_Throws() { var pipeline = new TestBuildPipeline(); Assert.Throws <ArgumentNullException>(() => pipeline.CanRun(null)); }