Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MattEqualsCoder committed Jan 2, 2025
1 parent a22e1d5 commit bf92aaa
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public LocationLogicTests()
public void LocationWithoutLogicNeverHasMissingItems()
{
var emptyProgression = new Progression();
World.HyruleCastle.LinksUncle.UpdateAccessibility(emptyProgression, emptyProgression);
var missingItems = Logic.GetMissingRequiredItems(World.HyruleCastle.LinksUncle, emptyProgression, out _);
missingItems.Should().BeEmpty();
}
Expand All @@ -32,6 +33,7 @@ public void LocationWithoutLogicNeverHasMissingItems()
public void LocationWithSatisfiedLogicHasNoMissingItems()
{
var progression = new Progression(new[] { new Item(ItemType.Boots, World) }, new List<Reward>(), new List<Boss>());
World.LightWorldSouth.Library.UpdateAccessibility(progression, progression);
var missingItems = Logic.GetMissingRequiredItems(World.LightWorldSouth.Library, progression, out _);
missingItems.Should().BeEmpty();
}
Expand Down
Loading

0 comments on commit bf92aaa

Please sign in to comment.