public void TestUnique()
        {
            var mutations = new PermutaionsLinear();
            var res       = mutations.Generate(4);

            Assert.IsTrue(res.First().SequenceEqual(new [] { 1, 2, 3, 4 }));
            Assert.IsTrue(res.Last().SequenceEqual(new [] { 4, 3, 2, 1 }));
        }
Exemplo n.º 2
0
 public void GenerateLinearMutations()
 {
     var mutations = new PermutaionsLinear();
     var res       = mutations.Generate(4);
 }