예제 #1
0
        public static void ArmorIntermediateIngredient()
        {
            SkyrimMod masterMod = new("master.esp", SkyrimRelease.SkyrimSE);

            var theItem = new Armor(masterMod, "Gold Ring Shank");

            var theItemFormLink = theItem.AsLink();

            masterMod.Armors.Add(theItem);

            var linkCache = masterMod.ToImmutableLinkCache();

            HashSet <IFormLinkGetter <IItemGetter> > specificSet           = new();
            HashSet <IFormLinkGetter <IItemGetter> > allSet                = new();
            HashSet <IFormLinkGetter <IItemGetter> > ingredientSet         = new();
            HashSet <IFormLinkGetter <IItemGetter> > doNotUnburdenFormKeys = new();

            RecipeProcessor recipeProcessor = new(specificSet, allSet, ingredientSet, linkCache, doNotUnburdenFormKeys);


            recipeProcessor.ClassifyIngredient(theItemFormLink);


            Assert.Single(specificSet);
            Assert.Single(allSet);
            Assert.Empty(ingredientSet);
        }