Ejemplo n.º 1
0
        public void TestWriteWithAttribute(string value, Type expectedExceptionType)
        {
            CborOptions options = new CborOptions();

            StringObjectWithAttribute obj = new StringObjectWithAttribute
            {
                String = value
            };

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

            options.SetupExtensions();

            StringObjectWithAttribute obj = new StringObjectWithAttribute
            {
                String = value
            };

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