Exemplo n.º 1
0
 public void ParseFeetToCentimeters_WhenCalled_ReturnsFormatedLength(string lengthInFeet, string expectedResult, int decimalPlaces)
 {
     Assert.AreEqual(expectedResult, LengthConverter.ParseFeetToCentimeters(lengthInFeet, decimalPlaces));
 }
Exemplo n.º 2
0
 public void ParseFeetToCentimeters_WhenCalledWithNotParseableArgument_ThrowsFormatException(string lengthInFeet)
 {
     Assert.Throws <FormatException>(() => LengthConverter.ParseFeetToCentimeters(lengthInFeet));
 }