public void Should_Add_BuildConfig()
            {
                // Given
                var fixture = new OpenshiftBuildStarterFixture();

                fixture.BuildConfig = "hello-world";

                // When
                var result = fixture.Run();

                // Then
                result.Args.Should().Be($"start-build {fixture.BuildConfig}");
            }
            public void Should_Add_BuildConfig_And_Namespace()
            {
                // Given
                var fixture = new OpenshiftBuildStarterFixture();

                fixture.BuildConfig        = "hello-world";
                fixture.Settings.Namespace = "my-namespace";

                // When
                var result = fixture.Run();

                // Then
                result.Args.Should().Be($"start-build {fixture.BuildConfig} --namespace={fixture.Settings.Namespace}");
            }
            public void Should_Add_BuildConfig_And_Wait_Flag()
            {
                // Given
                var fixture = new OpenshiftBuildStarterFixture();

                fixture.BuildConfig   = "hello-world";
                fixture.Settings.Wait = true;

                // When
                var result = fixture.Run();

                // Then
                result.Args.Should().Be($"start-build {fixture.BuildConfig} --wait");
            }
            public void Should_Throw_If_BuildConfig_Is_Null_Or_Empty(string buildConfig)
            {
                // Given
                var fixture = new OpenshiftBuildStarterFixture();

                fixture.BuildConfig = buildConfig;

                // When
                Action action = () => fixture.Run();

                // Then
                action.Should().Throw <ArgumentNullException>()
                .Which.ParamName.Should().Be("buildConfig");
            }