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