public void AccessibiltyTests(
            ModeSaveData mode, RequirementType type, AccessibilityLevel expected)
        {
            Mode.Instance.Load(mode);

            Assert.Equal(expected, RequirementDictionary.Instance[type].Accessibility);
        }
Example #2
0
        public void AccessibiltyTests(
            ModeSaveData modeData, RequirementType type, AccessibilityLevel expected)
        {
            var container = ContainerConfig.Configure();

            using var scope = container.BeginLifetimeScope();
            var mode         = scope.Resolve <IMode>();
            var requirements = scope.Resolve <IRequirementDictionary>();

            mode.Load(modeData);

            Assert.Equal(expected, requirements[type].Accessibility);
        }
Example #3
0
        public void Tests(
            ModeSaveData mode, RequirementNodeID[] accessibleNodes, RequirementNodeID id,
            AccessibilityLevel expected)
        {
            Mode.Instance.Load(mode);
            RequirementNodeDictionary.Instance.Reset();

            foreach (var node in accessibleNodes)
            {
                RequirementNodeDictionary.Instance[node].AlwaysAccessible = true;
            }

            Assert.Equal(expected, RequirementNodeDictionary.Instance[id].Accessibility);
        }
Example #4
0
        public void Dictionary_Tests(
            ModeSaveData modeData, DropdownID id, bool expected)
        {
            var container = ContainerConfig.Configure();

            using var scope = container.BeginLifetimeScope();
            var mode      = scope.Resolve <IMode>();
            var dropdowns = scope.Resolve <IDropdownDictionary>();
            var dropdown  = dropdowns[id];

            mode.Load(modeData);

            Assert.Equal(expected, dropdown.RequirementMet);
        }
Example #5
0
        public void Factory_Tests(
            ModeSaveData modeData, DropdownID id, bool expected)
        {
            var container = ContainerConfig.Configure();

            using var scope = container.BeginLifetimeScope();
            var mode     = scope.Resolve <IMode>();
            var factory  = scope.Resolve <IDropdownFactory>();
            var dropdown = factory.GetDropdown(id);

            mode.Load(modeData);

            Assert.Equal(expected, dropdown.RequirementMet);
        }
Example #6
0
 public void Tests(
     ModeSaveData mode, RequirementNodeID[] accessibleEntryNodes,
     DungeonNodeID[] accessibleNodes, KeyDoorID[] unlockedDoors, (ItemType, int)[] items,
 public void Tests(
     ModeSaveData mode, (ItemType, int)[] items, (PrizeType, int)[] prizes,
 public override void Tests(
     ModeSaveData modeData, (ItemType, int)[] items, (PrizeType, int)[] prizes,
Example #9
0
 public virtual void AccessibilityTests(
     ModeSaveData modeData, (ItemType, int)[] items, (PrizeType, int)[] prizes,