public void ClosingRaisesDisposed() { JsonReader reader = new StubJsonReader(); reader.Disposed += new EventHandler(Reader_Disposed); Assert.IsFalse(_disposed); reader.Close(); Assert.IsTrue(_disposed); }
public void ClosingRaisesDisposed() { JsonReader reader = new StubJsonReader(); reader.Disposed += Reader_Disposed; Assert.IsFalse(_disposed); reader.Close(); Assert.IsTrue(_disposed); }
public void CloseWithoutDisposedHandlerHarmless() { JsonReader reader = new StubJsonReader(); reader.Close(); }