コード例 #1
0
        public void FindToleranceTest([ValueSource(typeof(OhnValueCalculatorTestData), "Colors")] ColorCodes x,
                                      [ValueSource(typeof(OhnValueCalculatorTestData), "BandDPositiveResults")] double positive,
                                      [ValueSource(typeof(OhnValueCalculatorTestData), "BandDNegativeResults")] double negative)
        {
            IOhmValueCalculator instance = CreateInstance();

            double[] tolerance = instance.FindTolerance(x.ToString());
            Assert.AreEqual(tolerance[0], positive);
            Assert.AreEqual(tolerance[0], negative);
        }