Exemplo n.º 1
0
        [Test] public void Test_Main()
        {
            ByteStack bs = new ByteStack();

            Assert.AreEqual(0, bs.Count);
            bs.Push((byte)'a');
            Assert.AreEqual(1, bs.Count);
            byte b = bs.Pop();

            Assert.AreEqual(b, (byte)'a');
            Assert.AreEqual(0, bs.Count);
        }