public void PositionAfterImport()
 {
     JsonReader reader = new JsonTextReader(new StringReader("[{},'end']"));
     reader.ReadToken(JsonTokenClass.Array);
     Assert.AreSame(JsonTokenClass.Object, reader.TokenClass);
     IImporter importer = new NameValueCollectionImporter();
     importer.Import(new ImportContext(), reader);
     Assert.AreEqual("end", reader.ReadString());
 }
 private static NameValueCollection UncheckedImport(string s)
 {
     JsonReader reader = new JsonTextReader(new StringReader(s));
     IImporter importer = new NameValueCollectionImporter();
     NameValueCollection import = (NameValueCollection) importer.Import(new ImportContext(), reader);
     Assert.IsTrue(reader.EOF, "Reader must be at EOF.");
     return import;
 }
 private static NameValueCollection UncheckImport(string s)
 {
     JsonReader reader = new JsonTextReader(new StringReader(s));
     IImporter importer = new NameValueCollectionImporter();
     return (NameValueCollection) importer.Import(new ImportContext(), reader);
 }