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