public void TestOhmValuesCalculatorValid(string first, string second, string third, string fourth, int expected) { var sut = new OhmValuesCalculator(); var result = sut.CalculateOhmValue(first, second, third, fourth); Assert.Equal(expected, result); }
public void TestOhmValuesCalculatorInvalidBands(string first, string second, string third, string fourth, string expected) { var sut = new OhmValuesCalculator(); var exception = Assert.Throws <ArgumentException>(() => sut.CalculateOhmValue(first, second, third, fourth)); Assert.Equal(expected, exception.ParamName); }