@@ -33,9 +33,9 @@ public void StreamExtensions_ReadDictionary_TerminatedLF_ReturnsDictionary()
33
33
34
34
Assert . NotNull ( output ) ;
35
35
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 ) ;
39
39
}
40
40
41
41
[ Fact ]
@@ -47,9 +47,9 @@ public void StreamExtensions_ReadDictionary_TerminatedCRLF_ReturnsDictionary()
47
47
48
48
Assert . NotNull ( output ) ;
49
49
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 ) ;
53
53
}
54
54
55
55
[ Fact ]
@@ -61,8 +61,8 @@ public void StreamExtensions_ReadDictionary_CaseSensitive_ReturnsDictionaryWithM
61
61
62
62
Assert . NotNull ( output ) ;
63
63
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 ) ;
66
66
}
67
67
68
68
[ Fact ]
@@ -74,7 +74,7 @@ public void StreamExtensions_ReadDictionary_CaseInsensitive_ReturnsDictionaryWit
74
74
75
75
Assert . NotNull ( output ) ;
76
76
Assert . Equal ( 1 , output . Count ) ;
77
- Assert . Contains ( KeyValuePair . Create ( "a ", "2" ) , output ) ;
77
+ AssertDictionary ( "2 ", "a" , output ) ;
78
78
}
79
79
80
80
[ Fact ]
@@ -86,9 +86,9 @@ public void StreamExtensions_ReadDictionary_Spaces_ReturnsCorrectKeysAndValues()
86
86
87
87
Assert . NotNull ( output ) ;
88
88
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 ) ;
92
92
}
93
93
94
94
[ Fact ]
@@ -100,9 +100,9 @@ public void StreamExtensions_ReadDictionary_EqualsInValues_ReturnsCorrectKeysAnd
100
100
101
101
Assert . NotNull ( output ) ;
102
102
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 ) ;
106
106
}
107
107
108
108
[ Fact ]
0 commit comments