You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/serialization/json/JsonSerializationWriterTests.cs
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,12 @@ public void WritesSampleObjectValue()
41
41
{"businessPhones",newList<string>(){"+1 412 555 0109"}},// write collection of primitives value
42
42
{"endDateTime",newDateTime(2023,03,14,0,0,0,DateTimeKind.Utc)},// ensure the DateTime doesn't crash
43
43
{"manager",newTestEntity{Id="48d31887-5fad-4d73-a9f5-3c356e68a038"}},// write nested object value
44
+
{"anonymousObject",new{Value1=true,Value2="",Value3=newList<string>{"Value3.1","Value3.2"}}},// write nested object value
45
+
{"dictionaryString",newDictionary<string,string>{{"91bbe8e2-09b2-482b-a90e-00f8d7e81636","b7992f48-a51b-41a1-ace5-4cebb7f111d0"},{"ed64c116-2776-4012-94d1-a348b9d241bd","55e1b4d0-2959-4c71-89b5-385ba5338a1c"},}},// write a Dictionary
46
+
{"dictionaryTestEntity",newDictionary<string,TestEntity>{{"dd476fc9-7e97-4a4e-8d40-6c3de7432eb3",newTestEntity{Id="dd476fc9-7e97-4a4e-8d40-6c3de7432eb3"}},{"ffa5c351-7cf5-43df-9b55-e12455cf6eb2",newTestEntity{Id="ffa5c351-7cf5-43df-9b55-e12455cf6eb2"}},}},// write a Dictionary
0 commit comments