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));
        }
        public static void ReadSimpleClassWithImmutableArray()
        {
            SimpleTestClassWithImmutableArray obj = JsonSerializer.Deserialize <SimpleTestClassWithImmutableArray>(SimpleTestClassWithImmutableArray.s_json);

            obj.Verify();
        }
Пример #4
0
        public async Task ReadSimpleClassWithImmutableArray()
        {
            SimpleTestClassWithImmutableArray obj = await JsonSerializerWrapperForString.DeserializeWrapper <SimpleTestClassWithImmutableArray>(SimpleTestClassWithImmutableArray.s_json);

            obj.Verify();
        }