public void Test_PermutateV4_Runv2_WithConsideringWeekNumber()
        {
            int                 expectedCount = 616872;
            IPermutator         permutator    = new Permutator_WithConsideringWeekNumber();
            List <List <Slot> > result        = new List <List <Slot> >();

            Benchmark(() => {
                result = permutator.Permutate(input().ToArray());
            }, "Runv2_WithConsideringWeekNumber");
            Assert.True(result.Count == expectedCount);
        }
Exemple #2
0
        public void Test_PermutateV4_Runv2_WithConsideringWeekNumber()
        {
            int         expectedCount = 616872;
            var         timer         = Stopwatch.StartNew();
            IPermutator permutator    = new Permutator_WithConsideringWeekNumber();
            var         result        = permutator.Permutate(input().ToArray());

            timer.Stop();
            Console.WriteLine("Combination count : " + result.Count);
            Console.WriteLine("Elapsed time : " + timer.Elapsed.TotalSeconds + " s");
            Assert.True(result.Count == expectedCount);
        }