mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-01-11 19:44:55 +00:00
Don't throw an exception when attempting to leave an unentered critical section, for consistency with simplsharp
This commit is contained in:
@@ -32,6 +32,9 @@ namespace ICD.Common.Utils.Tests
|
||||
[Test]
|
||||
public void LeaveTest()
|
||||
{
|
||||
SafeCriticalSection section = new SafeCriticalSection();
|
||||
Assert.DoesNotThrow(() => section.Leave());
|
||||
|
||||
Assert.Inconclusive();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user