@@ -6,23 +6,23 @@ public class EtlTests
66 [ Fact ]
77 public void Single_letter ( )
88 {
9- var input = new Dictionary < int , string [ ] >
9+ var legacy = new Dictionary < int , string [ ] >
1010 {
11- [ 1 ] = new [ ] { "A" }
11+ [ 1 ] = [ "A" ]
1212 } ;
1313 var expected = new Dictionary < string , int >
1414 {
1515 [ "a" ] = 1
1616 } ;
17- Assert . Equal ( expected , Etl . Transform ( input ) ) ;
17+ Assert . Equal ( expected , Etl . Transform ( legacy ) ) ;
1818 }
1919
2020 [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
2121 public void Single_score_with_multiple_letters ( )
2222 {
23- var input = new Dictionary < int , string [ ] >
23+ var legacy = new Dictionary < int , string [ ] >
2424 {
25- [ 1 ] = new [ ] { "A" , "E" , "I" , "O" , "U" }
25+ [ 1 ] = [ "A" , "E" , "I" , "O" , "U" ]
2626 } ;
2727 var expected = new Dictionary < string , int >
2828 {
@@ -32,16 +32,16 @@ public void Single_score_with_multiple_letters()
3232 [ "o" ] = 1 ,
3333 [ "u" ] = 1
3434 } ;
35- Assert . Equal ( expected , Etl . Transform ( input ) ) ;
35+ Assert . Equal ( expected , Etl . Transform ( legacy ) ) ;
3636 }
3737
3838 [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
3939 public void Multiple_scores_with_multiple_letters ( )
4040 {
41- var input = new Dictionary < int , string [ ] >
41+ var legacy = new Dictionary < int , string [ ] >
4242 {
43- [ 1 ] = new [ ] { "A" , "E" } ,
44- [ 2 ] = new [ ] { "D" , "G" }
43+ [ 1 ] = [ "A" , "E" ] ,
44+ [ 2 ] = [ "D" , "G" ]
4545 } ;
4646 var expected = new Dictionary < string , int >
4747 {
@@ -50,21 +50,21 @@ public void Multiple_scores_with_multiple_letters()
5050 [ "e" ] = 1 ,
5151 [ "g" ] = 2
5252 } ;
53- Assert . Equal ( expected , Etl . Transform ( input ) ) ;
53+ Assert . Equal ( expected , Etl . Transform ( legacy ) ) ;
5454 }
5555
5656 [ Fact ( Skip = "Remove this Skip property to run this test" ) ]
5757 public void Multiple_scores_with_differing_numbers_of_letters ( )
5858 {
59- var input = new Dictionary < int , string [ ] >
59+ var legacy = new Dictionary < int , string [ ] >
6060 {
61- [ 1 ] = new [ ] { "A" , "E" , "I" , "O" , "U" , "L" , "N" , "R" , "S" , "T" } ,
62- [ 2 ] = new [ ] { "D" , "G" } ,
63- [ 3 ] = new [ ] { "B" , "C" , "M" , "P" } ,
64- [ 4 ] = new [ ] { "F" , "H" , "V" , "W" , "Y" } ,
65- [ 5 ] = new [ ] { "K" } ,
66- [ 8 ] = new [ ] { "J" , "X" } ,
67- [ 10 ] = new [ ] { "Q" , "Z" }
61+ [ 1 ] = [ "A" , "E" , "I" , "O" , "U" , "L" , "N" , "R" , "S" , "T" ] ,
62+ [ 2 ] = [ "D" , "G" ] ,
63+ [ 3 ] = [ "B" , "C" , "M" , "P" ] ,
64+ [ 4 ] = [ "F" , "H" , "V" , "W" , "Y" ] ,
65+ [ 5 ] = [ "K" ] ,
66+ [ 8 ] = [ "J" , "X" ] ,
67+ [ 10 ] = [ "Q" , "Z" ]
6868 } ;
6969 var expected = new Dictionary < string , int >
7070 {
@@ -95,6 +95,6 @@ public void Multiple_scores_with_differing_numbers_of_letters()
9595 [ "y" ] = 4 ,
9696 [ "z" ] = 10
9797 } ;
98- Assert . Equal ( expected , Etl . Transform ( input ) ) ;
98+ Assert . Equal ( expected , Etl . Transform ( legacy ) ) ;
9999 }
100100}
0 commit comments