コード例 #1
0
		public void NeedsMigration_WithSameVersion_False()
		{
			var migrator = new FileMigrator(10, "somefile");
			migrator.AddVersionStrategy(new VersionStrategyThatsGood(10, 10));
			Assert.That(migrator.NeedsMigration(), Is.False);
		}
コード例 #2
0
		public void NeedsMigration_WithDifferentFileVersion_True()
		{
			var migrator = new FileMigrator(10, "somefile");
			migrator.AddVersionStrategy(new VersionStrategyThatsGood(8, 10));
			Assert.That(migrator.NeedsMigration(), Is.True);
		}