Exemplo n.º 1
0
        public void ShouldNotEquals()
        {
            AnyTerminal a;


            a = new AnyTerminal();

            Assert.IsFalse(a.Equals(null));
            Assert.IsFalse(a.Equals(new Terminal('a')));
            Assert.IsFalse(a.Equals(new EOS()));
        }
Exemplo n.º 2
0
        public void ShouldEquals()
        {
            AnyTerminal a, b;


            a = new AnyTerminal();
            b = new AnyTerminal();

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(b.Equals(a));
        }