public void TestOhmValueTolerationCalculation() { double ohms = 100; // value = 100 ohms double tolerance = 0.1; // tolerance = 10% var expected_upper_range = ohms + (ohms * tolerance); // 110 var expected_lower_range = ohms - (ohms * tolerance); // 90 double[] results = calculator.GetValueRange(ohms, tolerance); Assert.IsTrue(results[1] == expected_upper_range && results[0] == expected_lower_range); }