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