Пример #1
0
        public void TryPeek()
        {               //****************************************
            var MyCollection = new AsyncCollection <int>();

            //****************************************

            Assert.IsFalse(MyCollection.TryPeek(), "Peek succeeded unexpectedly");
        }
Пример #2
0
        public void TryPeekSuccess()
        {               //****************************************
            var MyCollection = new AsyncCollection <int>();

            //****************************************

            _ = MyCollection.TryAdd(42);

            Assert.IsTrue(MyCollection.TryPeek(), "Peek failed unexpectedly");
        }