Пример #1
0
            public void ReturnsFalseWhenComparedToNull()
            {
                var edge = new CommitEdge(new CommitVertex("sha1-child", "child commit"),
                                          new CommitVertex("sha-parent", "parent commit"));

                Assert.False(edge.Equals(null));
            }
Пример #2
0
            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));
            }
Пример #3
0
            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));
            }
Пример #4
0
            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));
            }