public async Task RaiseAndLower() { var asyncSemaphore = new NexusAsyncSemaphore(); await asyncSemaphore.RaiseAsync(); asyncSemaphore.Lower(); }
public async Task VerifyCannotLowerTwice() { var asyncSemaphore = new NexusAsyncSemaphore(); await asyncSemaphore.RaiseAsync(); asyncSemaphore.Lower(); asyncSemaphore.Lower(); }