コード例 #1
0
        public void CanRun_WhenCannotRun_IsFalse()
        {
            var pipeline = new TestBuildPipelineCantRun();
            var config   = BuildConfiguration.CreateInstance();

            Assert.That(pipeline.Build(config).Succeeded, Is.True);
            Assert.That(pipeline.CanRun(config).Result, Is.False);
        }
コード例 #2
0
        public void CanRun_WhenCannotRun_IsFalse()
        {
            var pipeline = new TestBuildPipelineCantRun();
            var config   = BuildConfiguration.CreateInstance(c => c.SetComponent(new TestBuildPipelineComponent {
                Pipeline = pipeline
            }));

            Assert.That(config.Build().Succeeded, Is.True);
            Assert.That(config.CanRun().Result, Is.False);
        }