public void NullHandling() { JsonReader reader = CreateReader("null"); MockedImporter importer = new MockedImporter(); Assert.IsNull(importer.Import(reader)); Assert.IsTrue(reader.EOF); }
public void Subclassing() { JsonReader reader = CreateReader("123"); MockedImporter importer = new MockedImporter(); importer.ReturnValue = new object(); object o = importer.Import(reader); Assert.IsTrue(reader.EOF); Assert.IsTrue(importer.Called); Assert.IsNotNull(o); Assert.AreEqual(importer.ReturnValue, o); }