Exemplo n.º 1
0
        public void equals()
        {
            PicoBuffer b  = new PicoBuffer(3);
            PicoBuffer b2 = new PicoBuffer(3);

            b.append("1234");
            b2.append("6789");

            Assert.IsFalse(b.equals(b2));

            b2.clear();
            b2.append("1234");
            Assert.IsTrue(b.equals(b2));

            b.set_pos(10);
            Assert.IsFalse(b.equals(b2));

            b.delete();
            b2.delete();
        }