Beispiel #1
0
        public void ShoudNotEquals()
        {
            TerminalInput a, b;

            a = new TerminalInput(new Token("C", "V"));
            b = new TerminalInput(new Token("C", "v"));

            Assert.IsFalse(a.Equals(b));
            Assert.IsFalse(a.Equals(new NonTerminalInput("A")));
            Assert.IsFalse(a.Equals(new EOSInput <char>()));
        }
Beispiel #2
0
        public void ShoudEquals()
        {
            TerminalInput a, b;

            a = new TerminalInput(new Token("C", "V"));
            b = new TerminalInput(new Token("C", "V"));

            Assert.IsTrue(a.Equals(b));
            Assert.IsTrue(b.Equals(a));
        }
Beispiel #3
0
        public void ShoudEquals()
        {
            TerminalInput a, b;

            a = new TerminalInput('a');
            b = new TerminalInput('a');

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