Skip to content

Commit bbafa66

Browse files
authored
Ensuring default serialization settings behave correctly (#1008)
1 parent cae5198 commit bbafa66

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/SendGrid.Tests/Integration.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,14 @@ public void TestKitchenSinkIsUnaffectedByCustomContractResolver()
342342
try
343343
{
344344
TestKitchenSink();
345+
346+
// Ensure default behavior is not broken
347+
var testObject = new
348+
{
349+
PropertyName = "PropertyValue",
350+
Dictionary = new Dictionary<string, string> { { "DictionaryKey", "DictionaryValue" } }
351+
};
352+
Assert.Equal("{\"propertyName\":\"PropertyValue\",\"dictionary\":{\"dictionaryKey\":\"DictionaryValue\"}}", JsonConvert.SerializeObject(testObject));
345353
}
346354
finally
347355
{

0 commit comments

Comments
 (0)