Index: test/Common/DelftTools.TestUtils/TestHelper.cs =================================================================== diff -u -rfbe5d1ac043ae74461b82b0ab71c5388bfbbc58b -r98a7464aa2f9a8163979b8a9d5ac617e412ba3a0 --- test/Common/DelftTools.TestUtils/TestHelper.cs (.../TestHelper.cs) (revision fbe5d1ac043ae74461b82b0ab71c5388bfbbc58b) +++ test/Common/DelftTools.TestUtils/TestHelper.cs (.../TestHelper.cs) (revision 98a7464aa2f9a8163979b8a9d5ac617e412ba3a0) @@ -565,15 +565,7 @@ } // 25% is the best result GREEN, less or greater than goes to yellow - double localValue; - if (fraction >= 0.25) - { - localValue = Math.Min(1, (fraction - 0.25)/0.75); - } - else - { - localValue = Math.Max(0, (0.25 - fraction)/0.25); - } + var localValue = fraction >= 0.25 ? Math.Min(1, (fraction - 0.25)/0.75) : Math.Max(0, (0.25 - fraction)/0.25); return colors[(int) (localValue*100.0)]; }