Skip to content

Commit

Permalink
Fixed test build
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno Westhof authored and Jarno Westhof committed Nov 1, 2020
1 parent 2297087 commit 188d000
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TsRandomizer.Tests/ForwardFillingRandomizerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void Should_generate_beatable_seed_in_1_pass()
var seed = new Seed(1U, SeedOptions.None);
var unlockingMap = new ItemUnlockingMap(seed);
var itemProvder = new ItemInfoProvider(SeedOptions.None, unlockingMap);
var itemLocations = new ItemLocationMap(itemProvder);
var itemLocations = new ItemLocationMap(itemProvder, unlockingMap);

ForwardFillingItemLocationRandomizer.AddRandomItemsToLocationMap(seed, itemProvder, unlockingMap, itemLocations, true);

Expand All @@ -33,7 +33,7 @@ public void Should_fill_tuturial_with_melee_and_spellorb(uint seedIndex)
var seed = new Seed(seedIndex, SeedOptions.None);
var unlockingMap = new ItemUnlockingMap(seed);
var itemProvder = new ItemInfoProvider(SeedOptions.None, unlockingMap);
var itemLocations = new ItemLocationMap(itemProvder);
var itemLocations = new ItemLocationMap(itemProvder, unlockingMap);

ForwardFillingItemLocationRandomizer.AddRandomItemsToLocationMap(seed, itemProvder, unlockingMap, itemLocations, true);

Expand Down
9 changes: 6 additions & 3 deletions TsRandomizer.Tests/ItemLocationMapFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class ItemLocationMapFixture
[Test]
public void With_no_items_only_6_item_locatios_should_be_accessable()
{
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, new ItemUnlockingMap(Seed.Zero)));
var unlockingMap = new ItemUnlockingMap(Seed.Zero);
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, unlockingMap), unlockingMap);

var accessableLocations = itemLocations.GetReachableLocations(Requirement.None).ToArray();

Expand All @@ -27,7 +28,8 @@ public void With_no_items_only_6_item_locatios_should_be_accessable()
[Test]
public void With_doubejump_timestop_spindle_and_cardD_should_get_access_to_past()
{
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, new ItemUnlockingMap(Seed.Zero)));
var unlockingMap = new ItemUnlockingMap(Seed.Zero);
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, unlockingMap), unlockingMap);

var accessableLocations = itemLocations.GetReachableLocations(
Requirement.DoubleJump | Requirement.GateAccessToPast | Requirement.Swimming)
Expand All @@ -39,7 +41,8 @@ public void With_doubejump_timestop_spindle_and_cardD_should_get_access_to_past(
[Test]
public void With_given_requirements_shoud_mark_captians_chests_as_available()
{
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, new ItemUnlockingMap(Seed.Zero)));
var unlockingMap = new ItemUnlockingMap(Seed.Zero);
var itemLocations = new ItemLocationMap(new ItemInfoProvider(SeedOptions.None, unlockingMap), unlockingMap);

var accessableLocations = itemLocations.GetReachableLocations(
Requirement.GassMask | Requirement.AntiWeed | Requirement.Swimming | Requirement.GateLakeSirineRight | Requirement.DoubleJump)
Expand Down
2 changes: 1 addition & 1 deletion TsRandomizer.Tests/RandomFillingRandomizerFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public void Should_fill_tuturial_with_melee_and_spellorb(uint seedIndex)
var seed = new Seed(seedIndex, SeedOptions.None);
var unlockingMap = new ItemUnlockingMap(seed);
var itemProvider = new ItemInfoProvider(SeedOptions.None, unlockingMap);
var itemLocations = new ItemLocationMap(itemProvider);
var itemLocations = new ItemLocationMap(itemProvider, unlockingMap);

FullRandomItemLocationRandomizer.AddRandomItemsToLocationMap(seed, itemProvider, unlockingMap, itemLocations, true);

Expand Down

0 comments on commit 188d000

Please sign in to comment.