public void CheckContainsQueue() { MyQueue <int> queueArray = new ArrayQueue <int>(); MyQueue <int> queueList = new ListQueue <int>(); for (int i = 1; i < 6; i++) { queueArray.Enqueue(i); queueList.Enqueue(i); } var resultArray = queueArray.Contains(1); var resultList = queueList.Contains(1); Assert.True(resultArray); Assert.True(resultList); }