Exemple #1
0
        public void Enter_WhenKeyIsNull_Throws()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => _mutex.Enter(key: null));

            Assert.Equal("key", exception.ParamName);
        }