public void ReturnsFalseWhenComparedToNull() { var edge = new CommitEdge(new CommitVertex("sha1-child", "child commit"), new CommitVertex("sha-parent", "parent commit")); Assert.False(edge.Equals(null)); }
public void ReturnsFalseWhenComparedToNull() { var edge = new CommitEdge(new CommitVertex("sha1-child", "child commit"), new CommitVertex("sha-parent", "parent commit")); Assert.False(edge.Equals(null)); Assert.False(object.Equals(edge, null)); }
public void ReturnsTrueIfSourceAndTargetAreSame() { var edge = new CommitEdge(new CommitVertex("sha-child", "child commit"), new CommitVertex("sha-parent", "parent commit")); var other = new CommitEdge(new CommitVertex("sha-child", "another child commit"), new CommitVertex("sha-parent", "another parent commit")); Assert.True(edge.Equals(other)); }
public void ReturnsFalseIfSourceAndTargetAreSame() { var edge = new CommitEdge(new CommitVertex("sha1-child", "child commit"), new CommitVertex("sha-parent", "parent commit")); var other = new CommitEdge(new CommitVertex("sha-child", "another child commit"), new CommitVertex("sha-parent", "another parent commit")); Assert.False(edge.Equals(other)); Assert.False(object.Equals(edge, other)); }