@@ -76,8 +76,7 @@ public class SimpleTestClass : ITestClass
76
76
public IReadOnlyCollection < string > MyStringIReadOnlyCollectionT { get ; set ; }
77
77
public IReadOnlyList < string > MyStringIReadOnlyListT { get ; set ; }
78
78
public ISet < string > MyStringISetT { get ; set ; }
79
- //todo: enable once we can write a custom converter for KeyValuePair:
80
- // public KeyValuePair<string, string> MyStringToStringKeyValuePair { get; set; }
79
+ public KeyValuePair < string , string > MyStringToStringKeyValuePair { get ; set ; }
81
80
public IDictionary MyStringToStringIDict { get ; set ; }
82
81
public Dictionary < string , string > MyStringToStringGenericDict { get ; set ; }
83
82
public IDictionary < string , string > MyStringToStringGenericIDict { get ; set ; }
@@ -127,7 +126,7 @@ public class SimpleTestClass : ITestClass
127
126
@"""MyEnum"" : 2," + // int by default
128
127
@"""MyInt64Enum"" : -9223372036854775808," +
129
128
@"""MyUInt64Enum"" : 18446744073709551615," +
130
- // @"""MyStringToStringKeyValuePair"" : {""Key"" : ""myKey"", ""Value"" : ""myValue""}," +
129
+ @"""MyStringToStringKeyValuePair"" : {""Key"" : ""myKey"", ""Value"" : ""myValue""}," +
131
130
@"""MyStringToStringIDict"" : {""key"" : ""value""}," +
132
131
@"""MyStringToStringGenericDict"" : {""key"" : ""value""}," +
133
132
@"""MyStringToStringGenericIDict"" : {""key"" : ""value""}," +
@@ -277,7 +276,7 @@ public void Initialize()
277
276
MyStringIReadOnlyListT = new string [ ] { "Hello" } ;
278
277
MyStringISetT = new HashSet < string > { "Hello" } ;
279
278
280
- // MyStringToStringKeyValuePair = new KeyValuePair<string, string>("myKey", "myValue");
279
+ MyStringToStringKeyValuePair = new KeyValuePair < string , string > ( "myKey" , "myValue" ) ;
281
280
MyStringToStringIDict = new Dictionary < string , string > { { "key" , "value" } } ;
282
281
283
282
MyStringToStringGenericDict = new Dictionary < string , string > { { "key" , "value" } } ;
@@ -477,8 +476,8 @@ public void Verify()
477
476
Assert . Equal ( "value" , MyStringToStringIImmutableDict [ "key" ] ) ;
478
477
Assert . Equal ( "value" , MyStringToStringImmutableSortedDict [ "key" ] ) ;
479
478
480
- // Assert.Equal("myKey", MyStringToStringKeyValuePair.Key);
481
- // Assert.Equal("myValue", MyStringToStringKeyValuePair.Value);
479
+ Assert . Equal ( "myKey" , MyStringToStringKeyValuePair . Key ) ;
480
+ Assert . Equal ( "myValue" , MyStringToStringKeyValuePair . Value ) ;
482
481
483
482
Assert . Equal ( 2 , MyStringStackT . Count ) ;
484
483
Assert . True ( MyStringStackT . Contains ( "Hello" ) ) ;
0 commit comments