public void ReadObject_WithReaderAndOnProperty_WhenReaderIsNull_Throws()
        {
            ArgumentNullException exception = Assert.Throws <ArgumentNullException>(
                () => JsonTextReaderExtensions.ReadObject(reader: null, onProperty: _ => { }));

            Assert.Equal("reader", exception.ParamName);
        }
        public void ReadObject_WithReaderAndOnProperty_WhenOnPropertyIsNull_Throws()
        {
            using (var test = new Test())
            {
                ArgumentNullException exception = Assert.Throws <ArgumentNullException>(
                    () => JsonTextReaderExtensions.ReadObject(test.Reader, onProperty: null));

                Assert.Equal("onProperty", exception.ParamName);
            }
        }