public void IdentifierMutex_Clear()
        {
            IIdentifier <string> mutexIdent = new IdentifierMutex <string>(new Identifier <string>());

            var code = mutexIdent.Add("item");

            Assert.True(mutexIdent.TryGetValue(code, out var item));

            mutexIdent.Clear();
            Assert.False(mutexIdent.TryGetValue(code, out _));
        }
        public void IdentifierMutex_TryGetValue()
        {
            IIdentifier <string> mutexIdent = new IdentifierMutex <string>(new Identifier <string>());

            var code = mutexIdent.Add("item");

            mutexIdent.TryGetValue("item", out var result);

            Assert.Equal(code, result);

            mutexIdent.TryGetValue(code, out var item);

            Assert.Equal("item", item);
        }
        public void IdentifierMutex_GetEnumerator()
        {
            IIdentifier <string> mutexIdent = new IdentifierMutex <string>(new Identifier <string>());

            var code1 = mutexIdent.Add("item");

            Assert.True(mutexIdent.TryGetValue(code1, out _));

            Assert.NotNull(mutexIdent.GetEnumerator());
        }