public void MyQueue_1_Constructor_1_IsEmptyReturnsTrue() { // Arrange IMyQueue <string> q = DSBuilder.CreateMyQueue(); bool expected = true; // Act bool actual = q.IsEmpty(); // Assert Assert.AreEqual(expected, actual); }
public void MyQueue_2_Enqueue_1_IsEmptyReturnsFalse() { // Arrange IMyQueue <string> stack = DSBuilder.CreateMyQueue(); bool expected = false; // Act stack.Enqueue("a"); bool actual = stack.IsEmpty(); // Assert Assert.AreEqual(expected, actual); }
public void MyQueue_4_Dequeue_2_IsEmptyReturnsTrueAfterGetFrontOnOneElement() { // Arrange IMyQueue <string> stack = DSBuilder.CreateMyQueue(); bool expected = true; // Act stack.Enqueue("a"); stack.Dequeue(); bool actual = stack.IsEmpty(); // Assert Assert.AreEqual(expected, actual); }
public void MyQueue_3_GetBack_2_IsEmptyReturnsFalseAfterGetBackOnOneElement() { // Arrange IMyQueue <string> stack = DSBuilder.CreateMyQueue(); bool expected = false; // Act stack.Enqueue("a"); stack.GetBack(); bool actual = stack.IsEmpty(); // Assert Assert.AreEqual(expected, actual); }