Net.Sf.Dbdeploy.ControllerTest.ShouldApplyScriptsMarkedAsFailedWhenForceUpdateIsSet C# (CSharp) Method

ShouldApplyScriptsMarkedAsFailedWhenForceUpdateIsSet() private method

        public void ShouldApplyScriptsMarkedAsFailedWhenForceUpdateIsSet()
        {
            // Setup script already run.
            this.appliedChangesProvider
                .Setup(p => p.GetAppliedChanges())
                .Returns(new List<ChangeEntry>
                        {
                            new ChangeEntry("1.0", 1) { ScriptName = "1.test.sql", Status = ScriptStatus.Success },
                            new ChangeEntry("1.0", 2) { ScriptName = "2.test.sql", Status = ScriptStatus.Success },
                            new ChangeEntry("1.0", 3) { ScriptName = "3.test.sql", Status = ScriptStatus.Failure }
                        });

            // Execute controller with force update set to true.
            this.controller.ProcessChangeScripts(null, true);

            // Verify scripts attempted.
            AssertRunScripts(this.runScripts, "1.0/3", "1.0/4", "1.1/1", "1.1/2");
        }