public void TestLowIsGoodPolarity()
        {
            var comparer = new RangeTargetComparer(DefaultConfig())
            {
                PolarityId = PolarityIds.RagLowIsGood
            };

            // Better
            var significance = comparer.CompareAgainstTarget(
                new CoreDataSet { Value = 0 });
            Assert.AreEqual(Significance.Better, significance);

            // On lower limit
            significance = comparer.CompareAgainstTarget(
                new CoreDataSet { Value = 1 });
            Assert.AreEqual(Significance.Same, significance);

            // On upper limit
            significance = comparer.CompareAgainstTarget(
                new CoreDataSet { Value = 2 });
            Assert.AreEqual(Significance.Worse, significance);

            // Worse
            significance = comparer.CompareAgainstTarget(
                new CoreDataSet { Value = 3 });
            Assert.AreEqual(Significance.Worse, significance);
        }
 private static void AssertExpected(RangeTargetComparer comparer, Significance expected, double val)
 {
     var significance = comparer.CompareAgainstTarget(new CoreDataSet { Value = val });
     Assert.AreEqual(expected, significance);
 }