示例#1
0
        public void TestDirectedEdgeComparator()
        {
            var d1 = new DirectedEdge(new Node(new Coordinate(0, 0)),
                                      new Node(new Coordinate(10, 10)), new Coordinate(10, 10), true);
            var d2 = new DirectedEdge(new Node(new Coordinate(0, 0)),
                                      new Node(new Coordinate(20, 20)), new Coordinate(20, 20), false);

            Assert.That(d2.CompareTo(d1), Is.EqualTo(0));
        }
示例#2
0
        public void testDirectedEdgeComparator()
        {
            var d1 = new DirectedEdge(new Node(new Coordinate(0, 0)),
                                      new Node(new Coordinate(10, 10)), new Coordinate(10, 10), true);
            var d2 = new DirectedEdge(new Node(new Coordinate(0, 0)),
                                      new Node(new Coordinate(20, 20)), new Coordinate(20, 20), false);

            Assert.AreEqual(0, d2.CompareTo(d1));
        }