Exemplo n.º 1
0
        public void WalksAreComparedBasedOnTheirLength()
        {
            var shortPath = new Path {
                new Town(0, 0),
                new Town(10, 0),
                new Town(10, 10),
                new Town(0, 10)
            };
            var longPath = new Path {
                new Town(0, 0),
                new Town(100, 0),
                new Town(100, 10),
                new Town(0, 100)
            };

            _sut.ComparePaths(shortPath, longPath).Should().Be(-1);
        }