public void TestEquals_CheckUpDifferentReadInputNodes_ReturnsFalse() { IASTNode firstValueNode = new CReadInputASTNode(new CValueASTNode(new int[] { 1 })); IASTNode secondValueNode = new CReadInputASTNode(new CValueASTNode(new int[] { 0 })); Assert.IsFalse(firstValueNode.Equals(secondValueNode)); Assert.IsFalse(secondValueNode.Equals(firstValueNode)); }
public void TestEquals_CheckUpSameReadInputNodes_ReturnsTrue() { IASTNode firstValueNode = new CReadInputASTNode(new CValueASTNode(new int[] { 0 })); IASTNode secondValueNode = new CReadInputASTNode(new CValueASTNode(new int[] { 0 })); Assert.IsTrue(firstValueNode.Equals(secondValueNode)); Assert.IsTrue(secondValueNode.Equals(firstValueNode)); }