public void TryPeek() { //**************************************** var MyCollection = new AsyncCollection <int>(); //**************************************** Assert.IsFalse(MyCollection.TryPeek(), "Peek succeeded unexpectedly"); }
public void TryPeekSuccess() { //**************************************** var MyCollection = new AsyncCollection <int>(); //**************************************** _ = MyCollection.TryAdd(42); Assert.IsTrue(MyCollection.TryPeek(), "Peek failed unexpectedly"); }