public static void XmlWriterDisposeWorksWithDerivingClasses() { MyXmlWriter mywriter = new MyXmlWriter(); Assert.False(mywriter.IsDisposed); mywriter.Dispose(); Assert.True(mywriter.IsDisposed); }