public void SelfPass() { Assert.Throws <ArgumentException>(() => { var mod = new SkyrimMod(Utility.PluginModKey, SkyrimRelease.SkyrimSE); mod.DuplicateFromOnlyReferenced(mod.ToMutableLinkCache(), mod.ModKey); }); }
public void DoNothing() { var mod = new SkyrimMod(Utility.PluginModKey, SkyrimRelease.SkyrimSE); var npc = mod.Npcs.AddNew(); mod.DuplicateFromOnlyReferenced(mod.ToMutableLinkCache(), Utility.PluginModKey2); mod.EnumerateMajorRecords().Should().HaveCount(1); mod.Npcs.Should().HaveCount(1); mod.Npcs.First().Should().BeSameAs(npc); }