public void ParsePoundsToKilograms_WhenCalled_ReturnsFormatedWeightInKilograms(string weightInPounds, string expectedResult, int decimalPlaces) { Assert.AreEqual(expectedResult, WeightConverter.ParsePoundsToKilograms(weightInPounds, decimalPlaces)); }
public void ParsePoundsToKilograms_WhenCalledWithNotParseableArgument_ThrowsFormatException(string weightInPounds) { Assert.Throws <FormatException>(() => WeightConverter.ParsePoundsToKilograms(weightInPounds)); }