Inheritance: AbstractJsonParser
        public void DetectEmpty()
        {
            var parser = new JsonTextParser(new StreamReader(new FileStream("a.txt", FileMode.OpenOrCreate, FileAccess.Read)));
            Assert.That(parser.EndOfInput(), Is.True);


            Assert.That(new JsonTextParser(new StringReader("")).EndOfInput(), Is.True);
        }
 public void DetectTailWhitespaceAfterRead()
 {
     var parser = new JsonTextParser(new StringReader("{}  \r\n\t  "));
     JsonConvert.Parse(parser);
     Assert.That(parser.EndOfInput(), Is.True);
 }
 public void DetectEmptyAfterRead()
 {
     var parser = new JsonTextParser(new StringReader("{}"));
     JsonConvert.Parse(parser);
     Assert.That(parser.EndOfInput(), Is.True);
 }