private static void AssertImport(object expected, string input)
{
JsonTextReader reader = new JsonTextReader(new StringReader(input));
Type expectedType = expected.GetType();
ImportContext context = new ImportContext();
object o = context.Import(expectedType, reader);
Assert.IsTrue(reader.EOF, "Reader must be at EOF.");
Assert.IsInstanceOfType(expectedType, o);
Assert.AreEqual(expected, o);
}