private static object Import(string input) { JsonTextReader reader = new JsonTextReader(new StringReader(input)); BooleanImporter importer = new BooleanImporter(); object o = importer.Import(new ImportContext(), reader); Assert.IsTrue(reader.EOF, "Reader must be at EOF."); return o; }