public static void RunTests() { MyStacks stacks = new MyStacks (3); stacks.Push (0, 1); Print (stacks); stacks.Push (1, 3); Print (stacks); stacks.Push (2, 5); Print (stacks); stacks.Push (1, 4); Print (stacks); stacks.Push (1, 6); Print (stacks); stacks.Push (1, 7); Print (stacks); stacks.Push (1, 8); Print (stacks); Console.WriteLine (stacks.Peek (1)); Console.WriteLine (stacks.Pop (1)); Console.WriteLine (stacks.Pop (2)); Print (stacks); Console.WriteLine (stacks.Pop (1)); Console.WriteLine (stacks.IsEmpty(2)); Console.WriteLine (stacks.IsEmpty(1)); }