lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Digy (JIRA)" <>
Subject [jira] Created: (LUCENENET-65) Test case "TestSerializable" uses the stream after closing.
Date Tue, 14 Aug 2007 17:07:35 GMT
Test case  "TestSerializable" uses the stream after closing.

                 Key: LUCENENET-65
             Project: Lucene.Net
          Issue Type: Bug
            Reporter: Digy

        public virtual void  TestSerializable()
            Directory dir = new RAMDirectory();
            System.IO.MemoryStream bos = new System.IO.MemoryStream(1024);
            Assert.AreEqual(0, bos.Length, "initially empty");
            System.IO.BinaryWriter out_Renamed = new System.IO.BinaryWriter(bos);
            long headerSize = bos.Length;
            System.Runtime.Serialization.Formatters.Binary.BinaryFormatter formatter = new
            formatter.Serialize(out_Renamed.BaseStream, dir);
            //out_Renamed.Close(); ----> BUGGY LINE
            Assert.IsTrue(headerSize < bos.Length, "contains more then just header");

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message