public void Max_Test_Exception() { NodeStack <int> stack = new NodeStack <int>(); int actual = stack.Max(); int excerted = 0; Assert.AreEqual(excerted, actual); }
public void Max_Test2() { NodeStack <int> stack = new NodeStack <int>(); stack.Push(-5); stack.Push(-3); stack.Push(-1); stack.Push(-2); stack.Push(-4); int max = stack.Max(); foreach (int m in stack) { Console.WriteLine(m); } int actual = max; int excerted = -1; Assert.AreEqual(excerted, actual); }