コード例 #1
0
        public void ScaleTest(double target, double prop, double result)
        {
            var axis = new XAxis {
                TargetRange = target
            };

            axis.ScaledValue(10);
            axis.ScaledValue(20);
            Assert.Equal(result, axis.ScaledValue(prop), 3);
            Assert.Equal(prop, axis.Invert(result), 3);
        }