public void ClosingRaisesDisposed() { JsonWriter writer = new StubJsonWriter(); writer.Disposed += new EventHandler(Writer_Disposed); Assert.IsFalse(_disposed); writer.Close(); Assert.IsTrue(_disposed); }
public void ClosingRaisesDisposed() { JsonWriter writer = new StubJsonWriter(); writer.Disposed += new EventHandler(Writer_Disposed); Assert.IsFalse(_disposed); writer.Close(); Assert.IsTrue(_disposed); }
public void CloseWithoutDisposedHandlerHarmless() { JsonWriter writer = new StubJsonWriter(); writer.Close(); }
public void CloseWithoutDisposedHandlerHarmless() { JsonWriter writer = new StubJsonWriter(); writer.Close(); }