コード例 #1
0
        public async Task WriteSimpleTestClassWithStructCollectionWrappers()
        {
            {
                SimpleTestClassWithStructCollectionWrappers obj = new SimpleTestClassWithStructCollectionWrappers();
                obj.Initialize();
                Assert.Equal(SimpleTestClassWithStructCollectionWrappers.s_json.StripWhitespace(), await Serializer.SerializeWrapper(obj));
            }

            {
                SimpleTestClassWithStructCollectionWrappers obj = new SimpleTestClassWithStructCollectionWrappers()
                {
                    List       = default,
コード例 #2
0
        public static void WriteSimpleTestClassWithStructCollectionWrappers()
        {
            {
                SimpleTestClassWithStructCollectionWrappers obj = new SimpleTestClassWithStructCollectionWrappers();
                obj.Initialize();
                Assert.Equal(SimpleTestClassWithStructCollectionWrappers.s_json.StripWhitespace(), JsonSerializer.Serialize(obj));
            }

            {
                SimpleTestClassWithStructCollectionWrappers obj = new SimpleTestClassWithStructCollectionWrappers()
                {
                    List       = default,
コード例 #3
0
        public async Task ReadSimpleTestClass_StructCollectionWrappers()
        {
            SimpleTestClassWithStructCollectionWrappers obj = await Serializer.DeserializeWrapper <SimpleTestClassWithStructCollectionWrappers>(SimpleTestClassWithStructCollectionWrappers.s_json);

            obj.Verify();
        }
コード例 #4
0
        public static void ReadSimpleTestClass_StructCollectionWrappers()
        {
            SimpleTestClassWithStructCollectionWrappers obj = JsonSerializer.Deserialize <SimpleTestClassWithStructCollectionWrappers>(SimpleTestClassWithStructCollectionWrappers.s_json);

            obj.Verify();
        }