Example #1
0
        public void ShouldGenerteACompletelyShuffledPath()
        {
            var towns = new Path();

            for (var i = 0; i < 100; i++)
            {
                towns.Add(new Town(i, i));
            }

            var actual = _sut.GenerateRandom(towns);

            _sut.AreCompatible(actual, towns).Should().BeTrue();
            _sut.AreClones(actual, towns).Should().BeFalse();
        }