Inheritance: Lucene.Net.Store.InputStream
Ejemplo n.º 1
0
		public virtual void  TestRead()
		{
			InputStream is_Renamed = new MockInputStream(new byte[] 
                {
                    (byte) 0x80, (byte) 0x01, (byte) 0xFF, (byte) 0x7F, 
                    (byte) 0x80, (byte) 0x80, (byte) 0x01, (byte) 0x81, 
                    (byte) 0x80, (byte) 0x01, (byte) 0x06, (byte) 'L', 
                    (byte) 'u', (byte) 'c', (byte) 'e', (byte) 'n', 
                    (byte) 'e'}
                );
			Assert.AreEqual(128, is_Renamed.ReadVInt());
			Assert.AreEqual(16383, is_Renamed.ReadVInt());
			Assert.AreEqual(16384, is_Renamed.ReadVInt());
			Assert.AreEqual(16385, is_Renamed.ReadVInt());
			Assert.AreEqual("Lucene", is_Renamed.ReadString());
		}
Ejemplo n.º 2
0
        public virtual void  TestRead()
        {
            InputStream is_Renamed = new MockInputStream(new byte[]
            {
                (byte)0x80, (byte)0x01, (byte)0xFF, (byte)0x7F,
                (byte)0x80, (byte)0x80, (byte)0x01, (byte)0x81,
                (byte)0x80, (byte)0x01, (byte)0x06, (byte)'L',
                (byte)'u', (byte)'c', (byte)'e', (byte)'n',
                (byte)'e'
            }
                                                         );

            Assert.AreEqual(128, is_Renamed.ReadVInt());
            Assert.AreEqual(16383, is_Renamed.ReadVInt());
            Assert.AreEqual(16384, is_Renamed.ReadVInt());
            Assert.AreEqual(16385, is_Renamed.ReadVInt());
            Assert.AreEqual("Lucene", is_Renamed.ReadString());
        }