public void Count2Old() { var permutations = new NugetCombinatorics.Permutations <int>(_veryLargeSource); if (permutations.Count != _veryLargeSourceCount) { throw new InvalidOperationException($"Expected 51090942171709440000 but got {permutations.Count}."); } }
public void Count0Old() { var permutations = new NugetCombinatorics.Permutations <int>(_source); if (permutations.Count != 362880) { throw new InvalidOperationException($"Expected 362880 but got {permutations.Count}."); } }
public void Count1Old() { var permutations = new NugetCombinatorics.Permutations <int>(_largeSource); if (permutations.Count != 121645100408832000) { throw new InvalidOperationException($"Expected 121645100408832000 but got {permutations.Count}."); } }
public void EnumerateOld() { var permutations = new NugetCombinatorics.Permutations <int>(_source); foreach (var p in permutations) { ; } }