Пример #1
0
        public void TestWriteWithAttribute(string value, Type expectedExceptionType)
        {
            CborOptions options = new CborOptions();

            StringObjectWithAttribute obj = new StringObjectWithAttribute
            {
                String = value
            };

            Helper.TestWrite(obj, expectedExceptionType, options);
        }
        public void TestWriteWithAttribute(string value, Type expectedExceptionType)
        {
            JsonSerializerOptions options = new JsonSerializerOptions();

            options.SetupExtensions();

            StringObjectWithAttribute obj = new StringObjectWithAttribute
            {
                String = value
            };

            Helper.TestWrite(obj, options, expectedExceptionType);
        }