示例#1
0
            public void Should_Redirect_Standard_Error()
            {
                var fixture = new Ef6DatabaseUpdateToolFixture();

                fixture.Settings.RedirectStandardError = true;;

                var result = fixture.Run();

                Assert.True(result.Process.RedirectStandardError);
            }
示例#2
0
            public void Should_Add_Force_To_Arguments_If_Not_False(bool value, string expected)
            {
                // Given
                var fixture = new Ef6DatabaseUpdateToolFixture();

                fixture.Settings.Force = value;

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

                // Then
                Assert.Equal(expected, result.Args);
            }
示例#3
0
            public void Should_Add_Configuration_File_Path_To_Arguments(string value, string expected)
            {
                // Given
                var fixture = new Ef6DatabaseUpdateToolFixture();

                fixture.Settings.ConfigurationFile = value;

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

                // Then
                Assert.Equal(expected, result.Args);
            }
示例#4
0
            public void Should_Add_Target_To_Arguments(string value, string expected)
            {
                // Given
                var fixture = new Ef6DatabaseUpdateToolFixture();

                fixture.Settings.Target = value;

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

                // Then
                Assert.Equal(expected, result.Args);
            }
示例#5
0
            public void Should_Throw_If_Settings_Are_Null()
            {
                // Given
                var fixture = new Ef6DatabaseUpdateToolFixture();

                fixture.Settings = null;

                // When
                var result = Record.Exception(() => fixture.Run());

                // Then
                result.IsArgumentNullException("settings");
            }