Пример #1
0
 public void ParsePoundsToKilograms_WhenCalled_ReturnsFormatedWeightInKilograms(string weightInPounds, string expectedResult, int decimalPlaces)
 {
     Assert.AreEqual(expectedResult, WeightConverter.ParsePoundsToKilograms(weightInPounds, decimalPlaces));
 }
Пример #2
0
 public void ParsePoundsToKilograms_WhenCalledWithNotParseableArgument_ThrowsFormatException(string weightInPounds)
 {
     Assert.Throws <FormatException>(() => WeightConverter.ParsePoundsToKilograms(weightInPounds));
 }