public async Task EnterAsync_WhenKeyIsNull_Throws() { var exception = await Assert.ThrowsAsync <ArgumentNullException>( () => _mutex.EnterAsync(key: null, CancellationToken.None)); Assert.Equal("key", exception.ParamName); }