Пример #1
0
        public void AWalkCanGenerateACompatibleChild()
        {
            var town1 = new Town(1, 1);
            var town2 = new Town(2, 2);
            var town3 = new Town(3, 3);
            var path1 = new Path {
                town1, town2, town3
            };

            var child = _sut.GenerateChild(path1);

            _sut.AreCompatible(child, path1).Should().BeTrue();
        }