public void PeekTestEmptyStack() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value string actual; actual = target.Peek(); }
public void PopTestEmptyStackThenPush() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value string item = target.Pop(); // TODO: Initialize to an appropriate value item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); string actual; actual = target.Peek(); }
public void PeekTestHelperDefault() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value string item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); string expected = "Hello"; // TODO: Initialize to an appropriate value string actual; actual = target.Peek(); Assert.AreEqual(expected, actual); }
public void PeekTestCheckDoesntRemoveItem() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value string item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); item = target.Peek(); int expected = 1; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); Assert.AreEqual(expected, actual); }
public void PopTestEmptyStackThenPush() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value string item = target.Pop(); // TODO: Initialize to an appropriate value item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); string actual; actual = target.Peek(); }
public void PeekTestHelperDefault() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value string item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); string expected = "Hello"; // TODO: Initialize to an appropriate value string actual; actual = target.Peek(); Assert.AreEqual(expected, actual); }
public void PeekTestEmptyStack() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value string actual; actual = target.Peek(); }
public void PeekTestCheckDoesntRemoveItem() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value string item = "Hello"; // TODO: Initialize to an appropriate value target.Push(item); item = target.Peek(); int expected = 1; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); Assert.AreEqual(expected, actual); }