public void TestMigrationDownFromNothing() {
            var helper = new TestMigrationTrackerHelper();

            helper.Migrations.Down();

            Assert.AreEqual(0, helper.Counter);
            Assert.AreEqual(0, helper.Tracker);
        }
        public void TestMigrationDownFromSecond() {
            var helper = new TestMigrationTrackerHelper();

            helper.Migrations.SaveVersion(2);

            helper.Migrations.Down();

            Assert.AreEqual(2, helper.Counter);
            Assert.AreEqual(0, helper.Tracker);
        }
        public void TestMigrationUpFromLatest() {
            var helper = new TestMigrationTrackerHelper();

            helper.Migrations.SaveVersion(4);

            helper.Migrations.Up();

            Assert.AreEqual(0, helper.Counter);
            Assert.AreEqual(0, helper.Tracker);
        }
        public void TestMigrationUpFromNothingToSecond() {
            var helper = new TestMigrationTrackerHelper();

            helper.Migrations.Up(2);

            Assert.AreEqual(2, helper.Counter);
            Assert.AreEqual(2, helper.Tracker);
        }