public static void TestUpdateHeadPartThrows() { var patchMod = new Mock <ISkyrimMod>(); var linkCache = new Mock <ILinkCache <ISkyrimMod, ISkyrimModGetter> >(); HeadParts program = new(patchMod.Object, linkCache.Object); var headPartFormLink = MasterFormKey1.AsLinkGetter <IHeadPartGetter>(); Assert.Throws <RecordException>(() => program.UpdateHeadPart(headPartFormLink, TexturePath, MeshesPath)); }