@@ -33,9 +33,9 @@ public void StreamExtensions_ReadDictionary_TerminatedLF_ReturnsDictionary()
3333
3434 Assert . NotNull ( output ) ;
3535 Assert . Equal ( 3 , output . Count ) ;
36- Assert . Contains ( KeyValuePair . Create ( "a ", "1" ) , output ) ;
37- Assert . Contains ( KeyValuePair . Create ( "b ", "2" ) , output ) ;
38- Assert . Contains ( KeyValuePair . Create ( "c ", "3" ) , output ) ;
36+ AssertDictionary ( "1 ", "a" , output ) ;
37+ AssertDictionary ( "2 ", "b" , output ) ;
38+ AssertDictionary ( "3 ", "c" , output ) ;
3939 }
4040
4141 [ Fact ]
@@ -47,9 +47,9 @@ public void StreamExtensions_ReadDictionary_TerminatedCRLF_ReturnsDictionary()
4747
4848 Assert . NotNull ( output ) ;
4949 Assert . Equal ( 3 , output . Count ) ;
50- Assert . Contains ( KeyValuePair . Create ( "a ", "1" ) , output ) ;
51- Assert . Contains ( KeyValuePair . Create ( "b ", "2" ) , output ) ;
52- Assert . Contains ( KeyValuePair . Create ( "c ", "3" ) , output ) ;
50+ AssertDictionary ( "1 ", "a" , output ) ;
51+ AssertDictionary ( "2 ", "b" , output ) ;
52+ AssertDictionary ( "3 ", "c" , output ) ;
5353 }
5454
5555 [ Fact ]
@@ -61,8 +61,8 @@ public void StreamExtensions_ReadDictionary_CaseSensitive_ReturnsDictionaryWithM
6161
6262 Assert . NotNull ( output ) ;
6363 Assert . Equal ( 2 , output . Count ) ;
64- Assert . Contains ( KeyValuePair . Create ( "a ", "1" ) , output ) ;
65- Assert . Contains ( KeyValuePair . Create ( "A ", "2" ) , output ) ;
64+ AssertDictionary ( "1 ", "a" , output ) ;
65+ AssertDictionary ( "2 ", "A" , output ) ;
6666 }
6767
6868 [ Fact ]
@@ -74,7 +74,7 @@ public void StreamExtensions_ReadDictionary_CaseInsensitive_ReturnsDictionaryWit
7474
7575 Assert . NotNull ( output ) ;
7676 Assert . Equal ( 1 , output . Count ) ;
77- Assert . Contains ( KeyValuePair . Create ( "a ", "2" ) , output ) ;
77+ AssertDictionary ( "2 ", "a" , output ) ;
7878 }
7979
8080 [ Fact ]
@@ -86,9 +86,9 @@ public void StreamExtensions_ReadDictionary_Spaces_ReturnsCorrectKeysAndValues()
8686
8787 Assert . NotNull ( output ) ;
8888 Assert . Equal ( 3 , output . Count ) ;
89- Assert . Contains ( KeyValuePair . Create ( "key a ", "value 1" ) , output ) ;
90- Assert . Contains ( KeyValuePair . Create ( " key b ", " 2 " ) , output ) ;
91- Assert . Contains ( KeyValuePair . Create ( "key \t c \t ", "\t 3 \t " ) , output ) ;
89+ AssertDictionary ( "value 1 ", "key a" , output ) ;
90+ AssertDictionary ( " 2 ", " key b " , output ) ;
91+ AssertDictionary ( " \t 3 \t ", "key \t c \t " , output ) ;
9292 }
9393
9494 [ Fact ]
@@ -100,9 +100,9 @@ public void StreamExtensions_ReadDictionary_EqualsInValues_ReturnsCorrectKeysAnd
100100
101101 Assert . NotNull ( output ) ;
102102 Assert . Equal ( 3 , output . Count ) ;
103- Assert . Contains ( KeyValuePair . Create ( "a ", "value=1" ) , output ) ;
104- Assert . Contains ( KeyValuePair . Create ( "b ", "value=2" ) , output ) ;
105- Assert . Contains ( KeyValuePair . Create ( "c ", "value=3" ) , output ) ;
103+ AssertDictionary ( "value=1 ", "a" , output ) ;
104+ AssertDictionary ( "value=2 ", "b" , output ) ;
105+ AssertDictionary ( "value=3 ", "c" , output ) ;
106106 }
107107
108108 [ Fact ]
0 commit comments