File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 1+ using FluentAssertions ;
12using FluentAssertions . LanguageExt ;
23using FsCheck ;
34using FsCheck . Xunit ;
@@ -25,7 +26,7 @@ public class FizzBuzzTests
2526 public void Returns_Number_Representation ( int input , string expectedResult )
2627 => Games . FizzBuzz . Convert ( input )
2728 . Should ( )
28- . BeSome ( expectedResult ) ;
29+ . BeSome ( x => x . Should ( ) . Be ( expectedResult ) ) ;
2930
3031 [ Property ]
3132 public Property Parse_Return_Valid_String_For_Numbers_Between_1_And_100 ( )
Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ public static class FizzBuzz
77 public const int Min = 1 ;
88 public const int Max = 100 ;
99
10- private static readonly Map < int , string > Mapping =
11- Map . create (
12- ( 15 , "FizzBuzz" ) ,
13- ( 3 , "Fizz" ) ,
14- ( 5 , "Buzz" )
15- ) ;
10+ private static readonly Dictionary < int , string > Mapping = new ( )
11+ {
12+ { 15 , "FizzBuzz" } ,
13+ { 3 , "Fizz" } ,
14+ { 5 , "Buzz" }
15+ } ;
1616
1717 public static Option < string > Convert ( int input )
1818 => IsOutOfRange ( input )
You can’t perform that action at this time.
0 commit comments