public void TestAddTargetSignificanceDoesNothingIfTargetSignificanceIsAlreadySet()
 {
     var comparer = new SingleValueTargetComparer(SingleValueTargetComparerTest.Config(PolarityIds.RagLowIsGood));
     var data = new CoreDataSet{Value = 1};
     data.Significance.Add(ComparatorIds.Target, (int)Significance.Better);
     TargetComparer.AddTargetSignificance(data, comparer);
 }
        public void TestCompareRagHighIsGood()
        {
            var comparer = new SingleValueTargetComparer(Config(PolarityIds.RagHighIsGood));

            // Worse
            var significance = comparer.CompareAgainstTarget(Value(9));
            Assert.AreEqual(Significance.Worse, significance);

            // Same
            significance = comparer.CompareAgainstTarget(Value(10.0));
            Assert.AreEqual(Significance.Better, significance);

            // Better
            significance = comparer.CompareAgainstTarget(Value(11));
            Assert.AreEqual(Significance.Better, significance);
        }
 public void TestNoComparisonIsMade()
 {
     var comparer = new SingleValueTargetComparer(DefaultConfig());
     TargetComparerTest.TestNoComparisonIsMade(comparer);
 }
 public void TestNoComparisonIsMade()
 {
     var comparer = new SingleValueTargetComparer(Config(PolarityIds.RagHighIsGood));
     TargetComparerTest.TestNoComparisonIsMade(comparer);
 }