Пример #1
0
        public void TestPermutation()
        {
            List <int> elements = new List <int>()
            {
                1, 2, 3, 4, 5, 6, 7, 8, 9
            };
            var set = PermutationGenerator.GetPermutations <List <int>, int>(elements);

            Assert.AreEqual(362880, set.Count);
        }
 public void TestPermutation_NullArgument()
 {
     PermutationGenerator.GetPermutations <int>(null);
 }