public void IsInfinityWhenLabelPositionHigerThanScaleBelow()
 {
     ColonLabelHelper.Add(new DataItem {
         Value = 0, LabelPosition = LabelPosition.Below
     });
     Assert.AreEqual(double.PositiveInfinity, ColonLabelHelper.GetTemperature());
 }
 public void IsInfinityWhenHigerValueLower()
 {
     ColonLabelHelper.Add(new DataItem {
         Value = 51, LabelPosition = LabelPosition.Below
     });
     ColonLabelHelper.Add(new DataItem {
         Value = 50, LabelPosition = LabelPosition.Above
     });
     Assert.AreEqual(double.PositiveInfinity, ColonLabelHelper.GetTemperature());
 }
        public void TemperaturnLowerIfLabelAboveInsteadOfBelow()
        {
            var dataItem = new DataItem {
                Value = 50
            };

            ColonLabelHelper.Add(dataItem);
            dataItem.LabelPosition = LabelPosition.Above;
            var aboveTemperature = ColonLabelHelper.GetTemperature();

            dataItem.LabelPosition = LabelPosition.Below;
            var belowTemperature = ColonLabelHelper.GetTemperature();

            Assert.Greater(belowTemperature, aboveTemperature);
        }