public void CanBuild_IsTrue()
        {
            var pipeline = new TestBuildPipeline();
            var config   = BuildConfiguration.CreateInstance();

            Assert.That(pipeline.CanBuild(config).Result, Is.True);
        }
        public void Build_WithoutProgress_Succeeds()
        {
            var pipeline = new TestBuildPipeline();
            var config   = BuildConfiguration.CreateInstance();

            Assert.That(pipeline.CanBuild(config).Result, Is.True);
            Assert.That(pipeline.Build(config).Succeeded, Is.True);
        }
        public void Build_Succeeds()
        {
            var pipeline = new TestBuildPipeline();
            var config   = BuildConfiguration.CreateInstance();

            Assert.That(pipeline.CanBuild(config).Result, Is.True);
            using (var progress = new BuildProgress("Building...", "Please wait!"))
            {
                Assert.That(pipeline.Build(config, progress).Succeeded, Is.True);
            }
        }
        public void BuildIncremental_Succeeds()
        {
            var pipeline = new TestBuildPipeline();
            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.True);
            }
        }
        public void CanBuild_WithoutConfig_Throws()
        {
            var pipeline = new TestBuildPipeline();

            Assert.Throws <ArgumentNullException>(() => pipeline.CanBuild(null));
        }