Partitioning() 공개 정적인 메소드

분할 방법에 따라 총액(totalAmount)을 분할 갯수(partitionCount)만큼 분할합니다.
public static Partitioning ( this method, int partitionCount = DefaultPartitionCount, double totalAmount = DefaultPartitionAmount ) : double[]
method this
partitionCount int
totalAmount double
리턴 double[]
        public void PartitioningArrayTest(int partitionCount, double totalAmount)
        {
            foreach (var value in Enum.GetValues(typeof(PartitioningMethod)))
            {
                var method = (PartitioningMethod)value;
                var array  = LinqTool.Partitioning(method, partitionCount, totalAmount);

                Console.WriteLine("array=" + array.CollectionToString());
            }
        }
        public void DefaultPartitioningArrayTest()
        {
            foreach (var value in Enum.GetValues(typeof(PartitioningMethod)))
            {
                var method = (PartitioningMethod)value;
                var array  = LinqTool.Partitioning(method);

                array.SequenceEqual(LinqTool.DefaultPartitioningArray[method]).Should().Be.True();
            }
        }