예제 #1
0
        public void NullValueNotInOneof_FormatDefaults()
        {
            var formatter = new JsonFormatter(JsonFormatter.Settings.Default.WithFormatDefaultValues(true));
            var message   = new NullValueNotInOneof();

            AssertJson("{ 'nullValue': null }", formatter.Format(message));
        }
예제 #2
0
        public void NullValueNotInOneof()
        {
            var message = new NullValueNotInOneof();

            AssertJson("{ }", JsonFormatter.Default.Format(message));
        }