Пример #1
0
 public void Dequeue_EmptyCollection_ThrowsException()
 {
     Task2.Queue <int> queue = new Task2.Queue <int>();
     Assert.Throws <InvalidOperationException>(() => queue.Dequeue());
 }
Пример #2
0
 public void Dequeue_ValidData_ValidResult(int[] array, IEnumerable <int> collection)
 {
     Task2.Queue <int> queue = new Task2.Queue <int>(collection);
     queue.Dequeue();
     CollectionAssert.AreEquivalent(array, queue);
 }