public void Opg2a_Queue50_01_SizeOk() { // Arrange int expected = 50; // Act Queue <int> queue = BAI_Afteken1.Opdr2aQueue50(); int actual = queue.Count; // Assert Assert.AreEqual(expected, actual); }
public void Opg2a_Queue50_02_ContentsOk() { // Arrange // Act Queue <int> queue = BAI_Afteken1.Opdr2aQueue50(); // Assert int expected = 1; while (queue.Count > 0) { int actual = queue.Dequeue(); Assert.AreEqual(expected, actual); expected++; } }