示例#1
0
        public static void XmlReaderDisposeWorksWithDerivingClasses()
        {
            MyXmlReader myreader = new MyXmlReader();

            Assert.False(myreader.IsDisposed);
            myreader.Dispose();
            Assert.True(myreader.IsDisposed);
        }
示例#2
0
 public static void XmlReaderDisposeWorksWithDerivingClasses()
 {
     MyXmlReader myreader = new MyXmlReader();
     Assert.False(myreader.IsDisposed);
     myreader.Dispose();
     Assert.True(myreader.IsDisposed);
 }