public void ShouldNotEquals() { ExceptTerminalsList a, b; a = new ExceptTerminalsList('a', 'c'); b = new ExceptTerminalsList('b', 'c'); Assert.IsFalse(a.Equals(b)); Assert.IsFalse(b.Equals(null)); Assert.IsFalse(b.Equals(new AnyTerminal())); Assert.IsFalse(b.Equals(new EOS())); }
public void ShouldEquals() { ExceptTerminalsList a, b; a = new ExceptTerminalsList('a', 'c'); b = new ExceptTerminalsList('c', 'a'); Assert.IsTrue(a.Equals(b)); Assert.IsTrue(b.Equals(a)); }