예제 #1
0
        public void IfAScriptFailsDoesNotDeployFurtherScripts()
        {
            scriptStore.Add(new Script("001", "AAA", "BBB"));
            scriptStore.Add(new Script("002", "CCC", "DDD"));
            scriptStore.Add(new Script("003", "EEE", "FFF"));

            database.FailOn("CCC");

            string[] plan = new[] { "001", "002", "003" };

            ExecutePlanAndSuckUpErrors(plan);

            CollectionAssert.AreEqual(new[] { "AAA", "CCC" }, database.AppliedScripts);
        }