Пример #1
0
        public void CanSerializeCustomGenericDictionary()
        {
            var dictionary = new MyGenericDictionary
            {
                { "Key1", "value1" },
                { "Key2", "value2" },
            };

            this.AssertSerializesAndRoundTrips(dictionary);
        }
        public void CanSerializeCustomGenericDictionary()
        {
            var dictionary = new MyGenericDictionary
            {
                { "Key1", "value1" },
                { "Key2", "value2" },
            };

            SerializationTestHelper.Object(dictionary).RoundTrips(ExpectJson);
        }