public void Get_GetFromEmptyQueueShouldThrowExeption() { // Arrange QueueLinkedList <int> sut = new QueueLinkedList <int>(); // Act // Assert Assert.Throws <DataStructureIsEmptyOnReadExeption>(() => sut.Get()); }
public void Get_GetNumbersFromQueueShouldWork() { // Arrange QueueLinkedList <int> sut = new QueueLinkedList <int>(); // Act for (int i = 0; i < 100; i++) { sut.Add(i); } // Assert for (int expected = 0; expected < 100; expected++) { Assert.Equal(expected, sut.Get()); } }