/// <summary> ///GetPop 的测试 ///</summary> public void GetPopTestHelper <T>() { LinkStack <T> target = new LinkStack <T>(); // TODO: 初始化为适当的值 T expected = default(T); // TODO: 初始化为适当的值 T actual; target.Push(expected); actual = target.GetPop(); Assert.AreEqual(expected, actual); Assert.AreEqual <int>(1, target.Count); }