public void NeedsMigration_WithSameVersion_False() { var migrator = new FileMigrator(10, "somefile"); migrator.AddVersionStrategy(new VersionStrategyThatsGood(10, 10)); Assert.That(migrator.NeedsMigration(), Is.False); }
public void NeedsMigration_WithDifferentFileVersion_True() { var migrator = new FileMigrator(10, "somefile"); migrator.AddVersionStrategy(new VersionStrategyThatsGood(8, 10)); Assert.That(migrator.NeedsMigration(), Is.True); }