public void AccessibiltyTests( ModeSaveData mode, RequirementType type, AccessibilityLevel expected) { Mode.Instance.Load(mode); Assert.Equal(expected, RequirementDictionary.Instance[type].Accessibility); }
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); }
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); }
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); }
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); }
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,
public virtual void AccessibilityTests( ModeSaveData modeData, (ItemType, int)[] items, (PrizeType, int)[] prizes,