public void TestStackToHumanReadable() { Stack<int> stack = new Stack<int>(); for (int i = 0; i <= 5; i++) stack.Push(i); string str = "[0] => 5\r\n[1] => 4\r\n[2] => 3\r\n[3] => 2\r\n[4] => 1\r\n[5] => 0\r\n"; Assert.AreEqual(str, stack.ToHumanReadable(), false); }