From b99c2f253e95cdf0cfe8c1a20c9bf0ff1c720b72 Mon Sep 17 00:00:00 2001 From: Mark Cilia Vincenti Date: Sun, 10 Nov 2024 12:31:54 +0100 Subject: [PATCH] Removed unneeded tests. --- .../AsyncKeyedLocker/OriginalTests.cs | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/AsyncKeyedLock.Tests/AsyncKeyedLocker/OriginalTests.cs b/AsyncKeyedLock.Tests/AsyncKeyedLocker/OriginalTests.cs index 32676ed..494f3f8 100644 --- a/AsyncKeyedLock.Tests/AsyncKeyedLocker/OriginalTests.cs +++ b/AsyncKeyedLock.Tests/AsyncKeyedLocker/OriginalTests.cs @@ -523,39 +523,6 @@ public void TestTimeoutOrNullBasicWithOutParameter() Assert.False(asyncKeyedLocker.IsInUse("test")); } - [Fact] - public void TestTimeoutBasicWithOutParameterAndCancellationToken() - { - var asyncKeyedLocker = new AsyncKeyedLocker(o => { o.PoolSize = 0; }); - using (var myLock = asyncKeyedLocker.Lock("test", 0, out var entered)) - { - Assert.True(entered); - Assert.True(asyncKeyedLocker.IsInUse("test")); - using (asyncKeyedLocker.Lock("test", 0, out entered)) - Assert.False(entered); - using (asyncKeyedLocker.Lock("test", TimeSpan.Zero, out entered)) - Assert.False(entered); - Assert.True(asyncKeyedLocker.IsInUse("test")); - } - Assert.False(asyncKeyedLocker.IsInUse("test")); - } - - [Fact] - public void TestTimeoutOrNullBasicWithOutParameterAndCancellationToken() - { - var asyncKeyedLocker = new AsyncKeyedLocker(o => { o.PoolSize = 0; }); - using (var myLock = asyncKeyedLocker.LockOrNull("test", 0)) - { - Assert.NotNull(myLock); - Assert.True(asyncKeyedLocker.IsInUse("test")); - var entered = asyncKeyedLocker.LockOrNull("test", 0); - Assert.Null(entered); - entered = asyncKeyedLocker.LockOrNull("test", TimeSpan.Zero); - Assert.Null(entered); - } - Assert.False(asyncKeyedLocker.IsInUse("test")); - } - [Fact] public async Task TestTimeout() {