Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erri120 committed Nov 6, 2024
1 parent 4a80f50 commit d6688ca
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/NexusMods.MnemonicDB.Tests/DbTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ public async Task CanReadAndWriteOptionalAttributes()
remapped.Contains(Mod.Description).Should().BeTrue();
Mod.Description.TryGetValue(remapped, remapped.IndexSegment, out var foundDesc).Should().BeTrue();
foundDesc.Should().Be("Test Description");
remapped.Description.Should().Be("Test Description");
remapped.Description.Value.Should().Be("Test Description");

var remapped2 = result.Remap(modWithoutDiscription);
remapped2.Contains(Mod.Description).Should().BeFalse();
Mod.Description.TryGetValue(remapped2, remapped2.IndexSegment, out var foundDesc2).Should().BeFalse();
Expand Down Expand Up @@ -1036,12 +1036,10 @@ public async Task CanGetAttributesThatRequireDI()
Name = "Test Loadout",
GamePath = path
};

var result = await tx.Commit();

var loadout = result.Remap(loadout1);

loadout.GamePath.Should().Be(path);
loadout.GamePath.Value.Should().Be(path);
}

[Fact]
Expand Down

0 comments on commit d6688ca

Please sign in to comment.