public void TestScalinglineChartsMechanism1()
        {
            //Arrange
            var max = 1.47;
            var min = 0.76;

            // Act
            var interval = ChartUtility.GetMinMaxForLineChart(ref min, ref max);

            //Assert
            Debug.Print("{0:#,##0.000000}", min);
            Debug.Print("{0:#,##0.000000}", max);
            Debug.Print("{0:#,##0.000000}", interval);

            Assert.IsTrue(max - 1.5 < Tolerance);
            Assert.IsTrue(min - 0.7 < Tolerance);
            Assert.IsTrue(Math.Abs(interval - 0.1) < Tolerance);
        }
        public void TestScalinglineChartsMechanism1_SmallValues()
        {
            //Arrange
            var max = 0.00004556;
            var min = 0.000003;

            // Act
            var interval = ChartUtility.GetMinMaxForLineChart(ref min, ref max);

            //Assert
            Debug.Print("{0:#,##0.000000}", min);
            Debug.Print("{0:#,##0.000000}", max);
            Debug.Print("{0:#,##0.000000}", interval);


            Assert.IsTrue(max > 0 && max - 0.00005 < Tolerance);
            Assert.IsTrue(min - 0.00000 < Tolerance);
            Assert.IsTrue(Math.Abs(interval - 0.00001) < Tolerance);
        }
        public void TestScalinglineChartsMechanism1_BigValues()
        {
            //Arrange
            var max = 196.46;
            var min = 101.96;

            // Act
            var interval = ChartUtility.GetMinMaxForLineChart(ref min, ref max);

            //Assert
            Debug.Print("{0:#,##0.000000}", min);
            Debug.Print("{0:#,##0.000000}", max);
            Debug.Print("{0:#,##0.000000}", interval);


            Assert.IsTrue(max > 0 && max - 200 < Tolerance);
            Assert.IsTrue(min > -0.00000001 && min - 100.0 < Tolerance);
            Assert.IsTrue(Math.Abs(interval - 10) < Tolerance);
        }