Exemplo n.º 1
0
		public virtual void Test()
		{
			PagingMemoryStorage storage = new _PagingMemoryStorage_13();
			IBin testBin = storage.Open(new BinConfiguration(string.Empty, true, 0, false));
			Assert.AreEqual(Data.Length, testBin.Length());
			int actualLength = (int)testBin.Length();
			byte[] read = new byte[actualLength];
			testBin.Read(0, read, actualLength);
			ArrayAssert.AreEqual(Data, read);
		}
Exemplo n.º 2
0
        public virtual void Test()
        {
            PagingMemoryStorage storage = new _PagingMemoryStorage_13();
            IBin testBin = storage.Open(new BinConfiguration(string.Empty, true, 0, false));

            Assert.AreEqual(Data.Length, testBin.Length());
            int actualLength = (int)testBin.Length();

            byte[] read = new byte[actualLength];
            testBin.Read(0, read, actualLength);
            ArrayAssert.AreEqual(Data, read);
        }