public void DisposeThenWrite_ThrowsObjectDisposedException()
 {
     var stream = new BlockingMemoryStream();
     stream.Dispose();
     Assert.Throws<ObjectDisposedException>(() => stream.Write(new byte[1], 0, 1));
 }