Пример #1
0
        public static void XmlWriterDisposeWorksWithDerivingClasses()
        {
            MyXmlWriter mywriter = new MyXmlWriter();

            Assert.False(mywriter.IsDisposed);
            mywriter.Dispose();
            Assert.True(mywriter.IsDisposed);
        }
Пример #2
0
 public static void XmlWriterDisposeWorksWithDerivingClasses()
 {
     MyXmlWriter mywriter = new MyXmlWriter();
     Assert.False(mywriter.IsDisposed);
     mywriter.Dispose();
     Assert.True(mywriter.IsDisposed);
 }