Format() public method

public Format ( IEnumerable changes ) : string
changes IEnumerable
return string
Ejemplo n.º 1
0
        public void ProcessDoChangeScripts(Int64 lastChangeToApply, List <Int64> appliedChanges)
        {
            if (lastChangeToApply != Int64.MaxValue)
            {
                Info("Only applying changes up and including change script #" + lastChangeToApply);
            }
            Info("Changes currently applied to database:\n  " + prettyPrinter.Format(appliedChanges));

            List <ChangeScript> doChangeScripts = changeScriptRepository.GetOrderedListOfDoChangeScripts();

            Info("Scripts available:\n  " + prettyPrinter.FormatChangeScriptList(doChangeScripts));

            changeScriptExecuter.ApplyDeltaFragmentHeaderOrFooterSql(schemaManager.GenerateVersionCheck());
            List <Int64> changesToApply = LoopThruDoScripts(lastChangeToApply, doChangeScripts, appliedChanges);

            Info("To be applied:\n  " + prettyPrinter.Format(changesToApply));
        }
Ejemplo n.º 2
0
 public void ShouldDisplayNonRangedNumbersAsSeperateEntities()
 {
     Int64[] list = { 1, 3, 5 };
     Assert.AreEqual("1, 3, 5", prettyPrinter.Format(new List <Int64>(list)));
 }
Ejemplo n.º 3
0
        public void ShouldDisplayNonRangedNumbersAsSeperateEntities()
        {
            var list = this.CreateUniqueChangeList("v1.0", 1, 3, 5);

            Assert.AreEqual("  v1.0\t1, 3, 5", prettyPrinter.Format(list));
        }
Ejemplo n.º 4
0
 private void LogStatus(ICollection <ChangeScript> scripts, ICollection <int> applied, ICollection <ChangeScript> toApply)
 {
     Info("Changes currently applied to database:\n  " + prettyPrinter.Format(applied));
     Info("Scripts available:\n  " + prettyPrinter.FormatChangeScriptList(scripts));
     Info("To be applied:\n  " + prettyPrinter.FormatChangeScriptList(toApply));
 }