Ejemplo n.º 1
0
        public static void XmlWriterDisposeWorksWithDerivingClasses()
        {
            MyXmlWriter mywriter = new MyXmlWriter();

            Assert.False(mywriter.IsDisposed);
            mywriter.Dispose();
            Assert.True(mywriter.IsDisposed);
        }
Ejemplo n.º 2
0
 public static void XmlWriterDisposeWorksWithDerivingClasses()
 {
     MyXmlWriter mywriter = new MyXmlWriter();
     Assert.False(mywriter.IsDisposed);
     mywriter.Dispose();
     Assert.True(mywriter.IsDisposed);
 }