@@ -19,6 +19,9 @@ public void TryFormat_NullValue_ReturnsFalse()
1919
2020 [ TestCase ( 123.456 , "F2" , "123.46" ) ]
2121 [ TestCase ( 1234.456 , "F2" , "1234.46" ) ]
22+ [ TestCase ( 123.456 , "C" , "¤123.46" ) ]
23+ [ TestCase ( 123.456 , "P" , "12345.60%" ) ]
24+ [ TestCase ( 1234567890 , "N0" , "1,234,567,890" ) ]
2225 public void TryFormat_ValidFormats_ReturnsExpectedResult ( object input , string format , string expected )
2326 {
2427 var sut = new FormattableFormatter ( ) ;
@@ -27,9 +30,6 @@ public void TryFormat_ValidFormats_ReturnsExpectedResult(object input, string fo
2730 formatted . ShouldBe ( expected ) ;
2831 }
2932
30- [ TestCase ( 123.456 , "C" , "Format 'C' is not supported in FormattableFormatter" ) ]
31- [ TestCase ( 123.456 , "P" , "Format 'P' is not supported in FormattableFormatter" ) ]
32- [ TestCase ( 1234567890 , "N0" , "Format 'N0' is not supported in FormattableFormatter" ) ]
3333 [ TestCase ( 1234567890 , "Z" , "Format 'Z' is not supported in FormattableFormatter" ) ]
3434 public void TryFormat_UnsupportedFormat_ReturnsFalse ( object input , string format , string expected )
3535 {
0 commit comments