public void ClosingRaisesDisposed()
 {
     JsonReader reader = new StubJsonReader();   
     reader.Disposed += new EventHandler(Reader_Disposed);
     Assert.IsFalse(_disposed);
     reader.Close();
     Assert.IsTrue(_disposed);
 }
예제 #2
0
        public void ClosingRaisesDisposed()
        {
            JsonReader reader = new StubJsonReader();

            reader.Disposed += Reader_Disposed;
            Assert.IsFalse(_disposed);
            reader.Close();
            Assert.IsTrue(_disposed);
        }
예제 #3
0
        public void CloseWithoutDisposedHandlerHarmless()
        {
            JsonReader reader = new StubJsonReader();

            reader.Close();
        }
 public void CloseWithoutDisposedHandlerHarmless()
 {
     JsonReader reader = new StubJsonReader();   
     reader.Close();
 }