@@ -1251,9 +1251,9 @@ public void Can_ToObjectDictionary_KVPs()
1251
1251
var strKvp = new KeyValuePair < string , string > ( "A" , "1" ) ;
1252
1252
var intKvp = new KeyValuePair < string , int > ( "A" , 1 ) ;
1253
1253
1254
- Assert . That ( objKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , 1 } } ) ) ;
1255
- Assert . That ( strKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , " 1"} } ) ) ;
1256
- Assert . That ( intKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , 1 } } ) ) ;
1254
+ Assert . That ( objKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , 1 } } ) ) ;
1255
+ Assert . That ( strKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , " 1"} } ) ) ;
1256
+ Assert . That ( intKvp . ToObjectDictionary ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , 1 } } ) ) ;
1257
1257
1258
1258
var objKvp2 = new KeyValuePair < string , object > ( "B" , 2 ) ;
1259
1259
var strKvp2 = new KeyValuePair < string , string > ( "B" , "2" ) ;
@@ -1271,9 +1271,9 @@ public void Can_convert_KVPs_to_ObjectDictionary()
1271
1271
var strKvp = new KeyValuePair < string , string > ( "A" , "1" ) ;
1272
1272
var intKvp = new KeyValuePair < string , int > ( "A" , 1 ) ;
1273
1273
1274
- Assert . That ( objKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , 1 } } ) ) ;
1275
- Assert . That ( strKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , " 1"} } ) ) ;
1276
- Assert . That ( intKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "A" , 1 } } ) ) ;
1274
+ Assert . That ( objKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , 1 } } ) ) ;
1275
+ Assert . That ( strKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , " 1"} } ) ) ;
1276
+ Assert . That ( intKvp . ConvertTo < Dictionary < string , object > > ( ) , Is . EquivalentTo ( new Dictionary < string , object > { { "Key" , "A" } , { "Value" , 1 } } ) ) ;
1277
1277
1278
1278
var objKvp2 = new KeyValuePair < string , object > ( "B" , 2 ) ;
1279
1279
var strKvp2 = new KeyValuePair < string , string > ( "B" , "2" ) ;
0 commit comments