internal SemanticPart Substitute(NodeReference originalReference, NodeReference substitutedNode) { //TODO for now it is sufficient to have only StartNode substitution //but this is only because of using only path edges !!!! var startNode = StartNode; if (StartNode.Equals(originalReference)) { startNode = substitutedNode; } return(new SemanticPart(Utterance, startNode, Paths)); }
public void EqualsShouldReturnFalseWhenComparingWithDifferentType() { var lhs = new NodeReference(3); Assert.IsFalse(lhs.Equals(new object())); }
public void EqualsShouldReturnFalseWhenComparingWithNull() { var lhs = new NodeReference(3); Assert.IsFalse(lhs.Equals(null)); }