public void ImportNull()
 {
     ImportAwareImporter importer = new ImportAwareImporter(typeof(Thing));
     JsonRecorder writer = new JsonRecorder();
     writer.WriteNull();
     Assert.IsNull(importer.Import(new ImportContext(), writer.CreatePlayer()));
 }
 public void ImportTellsObjectToImportSelf()
 {
     ImportAwareImporter importer = new ImportAwareImporter(typeof(Thing));
     JsonRecorder writer = new JsonRecorder();
     writer.WriteString(string.Empty);
     Thing thing = (Thing) importer.Import(new ImportContext(), writer.CreatePlayer());
     Assert.IsTrue(thing.ImportCalled);
 }
 public void CannotSendNullReaderToImport()
 {
     ImportAwareImporter importer = new ImportAwareImporter(typeof(Thing));
     importer.Import(null, null);
 }