public void checkForIsNullTest() { OhmValueCalculator.Classes.OhmValueCalculatorHelperClass calculator = new OhmValueCalculator.Classes.OhmValueCalculatorHelperClass(); var res = calculator.CalculateOhmValue("Red", "Yellow", "Green", "Blue"); Assert.IsNotNull(res); }
public void checkForValuesGivenInAllBandsTest2() { OhmValueCalculator.Classes.OhmValueCalculatorHelperClass calculator = new OhmValueCalculator.Classes.OhmValueCalculatorHelperClass(); var res = calculator.CalculateOhmValue("Green", "Yellow", "Gold", "Red"); Assert.AreEqual(res, 5.4); }
public void checkForToleranceBandNone() { OhmValueCalculator.Classes.OhmValueCalculatorHelperClass calculator = new OhmValueCalculator.Classes.OhmValueCalculatorHelperClass(); var res = calculator.CalculateOhmValue("Green", "Yellow", "Gold", "None"); Assert.AreEqual(res, 79); }
public void checkForValuesGivenInAllBandsTest1() { OhmValueCalculator.Classes.OhmValueCalculatorHelperClass calculator = new OhmValueCalculator.Classes.OhmValueCalculatorHelperClass(); var res = calculator.CalculateOhmValue("Orange", "Brown", "Black", "Red"); Assert.AreEqual(res, 31); }