From de416b6f9f31d4ecda9a4cb1237d3fb87f21aedb Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Fri, 29 Dec 2023 18:34:09 +0100 Subject: [PATCH] Fixed test. --- .../StripedAsyncKeyedLocker/OriginalTests.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/AsyncKeyedLock.Tests/StripedAsyncKeyedLocker/OriginalTests.cs b/AsyncKeyedLock.Tests/StripedAsyncKeyedLocker/OriginalTests.cs index f70f1cc..a803afc 100644 --- a/AsyncKeyedLock.Tests/StripedAsyncKeyedLocker/OriginalTests.cs +++ b/AsyncKeyedLock.Tests/StripedAsyncKeyedLocker/OriginalTests.cs @@ -40,13 +40,9 @@ public void TestHashHelpersIsPrime7199374DoesNotThrow() } [Fact] - public void TestHashHelpersIsPrimeIntMaxValueDoesNotThrow() + public void TestHashHelpersGetPrimeIntMaxValue() { - Action action = () => - { - var asyncKeyedLocker = new StripedAsyncKeyedLocker(int.MaxValue); - }; - action.Should().NotThrow(); + HashHelpers.GetPrime(int.MaxValue).Should().Be(int.MaxValue); } [Fact]