public void ParseKilogramsToPounds_WhenCalled_ReturnsFormatedWeightInPounds(string weightInKilograms, string expectedResult, int decimalPlaces) { Assert.AreEqual(expectedResult, WeightConverter.ParseKilogramsToPounds(weightInKilograms, decimalPlaces)); }
public void ParseKilogramsToPounds_WhenCalledWithNotParseableArgument_ThrowsFormatException(string weightInKilograms) { Assert.Throws <FormatException>(() => WeightConverter.ParseKilogramsToPounds(weightInKilograms)); }