public void ParseFailureNode_Equals_ShouldReturnTrueWhenMessagesAreTheSame() { var lhs = new ParseFailureNode("(abc)", 0, "message"); var rhs = new ParseFailureNode("(abc)", 0, "message"); Assert.IsTrue(lhs.Equals(rhs)); }
public void ParseFailureNode_Equals_ShouldReturnFalseWhenMessageDiffers() { var lhs = new ParseFailureNode("(abc)", 0, "message 1"); var rhs = new ParseFailureNode("(abc)", 0, "message 2"); Assert.IsFalse(lhs.Equals(rhs)); }