public async Task WriteSimpleClassWithImmutableArray() { SimpleTestClassWithImmutableArray obj = new SimpleTestClassWithImmutableArray(); obj.Initialize(); Assert.Equal(SimpleTestClassWithImmutableArray.s_json, await Serializer.SerializeWrapper(obj)); }
public static void WriteSimpleClassWithImmutableArray() { SimpleTestClassWithImmutableArray obj = new SimpleTestClassWithImmutableArray(); obj.Initialize(); Assert.Equal(SimpleTestClassWithImmutableArray.s_json, JsonSerializer.Serialize(obj)); }