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 PushTestItemsInStack() { 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); string expected = "Hello"; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); 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 PushTestPushCastsStack() { 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 item = 987654321; // TODO: Initialize to an appropriate value target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); string expected = "987654321"; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); 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 IsEmptyTestAfterFillingStackThenPoppingStack() { 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); target.Push(item); target.Push(item); item = target.Pop(); item = target.Pop(); item = target.Pop(); item = target.Pop(); item = target.Pop(); bool expected = true; // TODO: Initialize to an appropriate value bool actual; actual = target.IsEmpty(); Assert.AreEqual(expected, actual); }
public void IsEmptyTestStackHasItem() { 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); bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.IsEmpty(); 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 PushTestFillStackWithStringArray() { string[] ARRAY = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" }; Stack_Accessor <string> target = new Stack_Accessor <string>(ARRAY.Length); // TODO: Initialize to an appropriate value for (int i = 0; i < ARRAY.Length; i++) { target.Push(ARRAY[i]); } string expected = "Friday"; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); Assert.AreEqual(expected, actual); }
public void PushTestPushStackIsFullException() { 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); target.Push(item); target.Push(item); target.Push(item); }
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 PushTestPushStackIsFullException() { 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); target.Push(item); target.Push(item); target.Push(item); }
public void PushTestPushNullFullStack() { 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 = null; // TODO: Initialize to an appropriate value target.Push(item); target.Push(item); target.Push(item); target.Push(item); target.Push(item); string expected = null; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); Assert.AreEqual(expected, actual); }
public void PushTestPushCastsStack() { 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 item = 987654321; // TODO: Initialize to an appropriate value target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); target.Push(item.ToString()); string expected = "987654321"; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); Assert.AreEqual(expected, actual); }
public void PushTestFillStackWithStringArray() { string[] ARRAY = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" }; Stack_Accessor<string> target = new Stack_Accessor<string>(ARRAY.Length); // TODO: Initialize to an appropriate value for (int i = 0; i < ARRAY.Length; i++) { target.Push(ARRAY[i]); } string expected = "Friday"; // TODO: Initialize to an appropriate value string actual; actual = target.Pop(); 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 IsEmptyTestAfterFillingStackThenPoppingStack() { 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); target.Push(item); target.Push(item); item = target.Pop(); item = target.Pop(); item = target.Pop(); item = target.Pop(); item = target.Pop(); bool expected = true; // TODO: Initialize to an appropriate value bool actual; actual = target.IsEmpty(); Assert.AreEqual(expected, actual); }
public void IsEmptyTestStackHasItem() { 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); bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.IsEmpty(); Assert.AreEqual(expected, actual); }