public void ParseCentimetersToFeet_WhenCalled_ReturnsFormatedLength(string lengthInCentimeters, string expectedResult, int decimalPlaces) { Assert.AreEqual(expectedResult, LengthConverter.ParseCentimetersToFeet(lengthInCentimeters, decimalPlaces)); }
public void ParseCentimetersToFeet_WhenCalledWithNotParseableArgument_ThrowsFormatException(string lengthInCentimeters) { Assert.Throws <FormatException>(() => LengthConverter.ParseCentimetersToFeet(lengthInCentimeters)); }