コード例 #1
0
 public void ParseCentimetersToFeet_WhenCalled_ReturnsFormatedLength(string lengthInCentimeters, string expectedResult, int decimalPlaces)
 {
     Assert.AreEqual(expectedResult, LengthConverter.ParseCentimetersToFeet(lengthInCentimeters, decimalPlaces));
 }
コード例 #2
0
 public void ParseCentimetersToFeet_WhenCalledWithNotParseableArgument_ThrowsFormatException(string lengthInCentimeters)
 {
     Assert.Throws <FormatException>(() => LengthConverter.ParseCentimetersToFeet(lengthInCentimeters));
 }