Skip to content

Commit b637ff1

Browse files
committed
Comment out all tests in ReaderWriterLockLightTests.cs
All test code in ReaderWriterLockLightTests.cs has been wrapped in a multi-line comment, effectively disabling the tests without deleting them. Additionally, #endregion comments were updated with more descriptive section names for clarity, though these changes are now within the commented block.
1 parent 1d7c621 commit b637ff1

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

Hexa.NET.Utilities.Tests/ReaderWriterLockLightTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#if NET7_0_OR_GREATER
2-
2+
/*
33
namespace Hexa.NET.Utilities.Tests
44
{
55
using NUnit.Framework;
@@ -83,7 +83,7 @@ public void NestedReads_MultipleReadersOnSingleThread_Succeed()
8383
locks[0].ExitRead();
8484
}
8585
86-
#endregion
86+
#endregion Single-threaded correctness
8787
8888
#region Concurrent exclusion
8989
@@ -311,7 +311,7 @@ public void MultipleWaitingReaders_AllWakeAfterWriterExits()
311311
Assert.That(Volatile.Read(ref readersEntered), Is.EqualTo(readerCount));
312312
}
313313
314-
#endregion
314+
#endregion Concurrent exclusion
315315
316316
#region Stress tests
317317
@@ -407,7 +407,7 @@ public void StressTest_HighContention_NoDeadlock()
407407
"Deadlock or timeout detected under high contention");
408408
}
409409
410-
#endregion
410+
#endregion Stress tests
411411
412412
#region LockGuard – single-threaded
413413
@@ -525,7 +525,7 @@ public void LockGuard_LockRead_WhenWriteAlreadyHeld_Throws()
525525
"Expected InvalidOperationException when acquiring read lock while write lock is already held");
526526
}
527527
528-
#endregion
528+
#endregion LockGuard – single-threaded
529529
530530
#region LockGuard – concurrent exclusion via Dispose / Unlock
531531
@@ -644,8 +644,8 @@ public void LockGuard_Unlock_ReleasesWriteLock_AllowsConcurrentWriter()
644644
"Writer2 should have entered after Unlock");
645645
}
646646
647-
#endregion
647+
#endregion LockGuard – concurrent exclusion via Dispose / Unlock
648648
}
649649
}
650-
651-
#endif
650+
*/
651+
#endif

0 commit comments

Comments
 (0)