public static void XmlReaderDisposeWorksWithDerivingClasses() { MyXmlReader myreader = new MyXmlReader(); Assert.False(myreader.IsDisposed); myreader.Dispose(); Assert.True(myreader.IsDisposed); }