public void CountTestEmptyStack() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor<string> target = new Stack_Accessor<string>(param0); // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); Assert.AreEqual(expected, actual); }
public void CountTestEmptyStack() { int param0 = 5; // TODO: Initialize to an appropriate value Stack_Accessor <string> target = new Stack_Accessor <string>(param0); // TODO: Initialize to an appropriate value int expected = 0; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); Assert.AreEqual(expected, actual); }
public void CountTestDefault() { 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); target.Push(item); target.Push(item); int expected = 3; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); 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 CountTestDefault() { 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); target.Push(item); target.Push(item); int expected = 3; // TODO: Initialize to an appropriate value int actual; actual = target.Count(); 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); }