Skip to content

Commit dcec0c5

Browse files
committed
Fix: Adjust TypedValueStore test assertions and cleanup dependencies
1 parent 5bf793a commit dcec0c5

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/CodeOfChaos.Types/CodeOfChaos.Types.csproj

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
</ItemGroup>
3434

3535
<ItemGroup>
36-
<PackageReference Include="AterraEngine.Unions" Version="5.0.0" />
37-
<PackageReference Include="AterraEngine.Unions.Generators" Version="5.0.0">
38-
<PrivateAssets>all</PrivateAssets>
39-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
40-
</PackageReference>
4136
<PackageReference Include="CodeOfChaos.Extensions" Version="0.68.0" />
4237
</ItemGroup>
4338

tests/Tests.CodeOfChaos.Types.TypedValueStore/TypedValueStoreTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public async Task GetOrAdd_ShouldReturnExistingValue() {
387387

388388
// Act
389389
// Try to get the value using GetOrAdd, if the key exists it should return the existing value
390-
string? result = store.GetOrAdd(key, valueFactory: () => newValue);
390+
string result = store.GetOrAdd(key, valueFactory: () => newValue);
391391

392392
// Assert
393393
await Assert.That(result).IsEqualTo(existingValue).Because("Expected the existing value to be returned.");
@@ -463,8 +463,8 @@ private static async Task TryGetValue_ShouldReturnCorrectValue<T>(string key, T
463463

464464
// Assert
465465
await Assert.That(result).IsTrue().Because("Expected item to be added successfully.");
466-
await Assert.That(resultValue).IsNotNull()
467-
.And.IsEqualTo(value).Because("Expected item to be returned successfully.");
466+
await Assert.That(resultValue is not null).IsTrue().Because("Expected item to be returned successfully.");
467+
await Assert.That(resultValue).IsEqualTo(value).Because("Expected item to be returned successfully.");
468468
}
469469

470470
[Test]

0 commit comments

Comments
 (0)