public void EnsureCanMigrate_DupTDVs() { var v2Path = GetTempFilePathWithExt(".cruise"); var init = new DatabaseInitializer_V2 { TreeDefaults = new[] { new CruiseDAL.V2.Models.TreeDefaultValue { Species = "sp1", PrimaryProduct = "01", LiveDead = "L" }, new CruiseDAL.V2.Models.TreeDefaultValue { Species = "sp2", PrimaryProduct = "01", LiveDead = "L" }, new CruiseDAL.V2.Models.TreeDefaultValue { Species = "sp2", PrimaryProduct = "01", LiveDead = "L" }, } }; using var v2Db = init.CreateDatabase(); var migrator = new Migrator(); var result = migrator.EnsureCanMigrate(v2Db, out var msg); result.Should().BeFalse(); msg.Should().NotBeNullOrEmpty(); }