Пример #1
0
		public virtual void TestGrowth()
		{
			int[] values = new int[] { 42, 47, 48 };
			MemoryBinGrowthTestCase.MockGrowthStrategy strategy = new MemoryBinGrowthTestCase.MockGrowthStrategy
				(values);
			MemoryBin bin = NewBin(InitialSize, strategy);
			Write(bin, 0, InitialSize + 1, values[0]);
			Write(bin, values[0], 1, values[1]);
			Write(bin, values[1], 1, values[2]);
			strategy.Verify();
		}
Пример #2
0
        public virtual void TestGrowth()
        {
            int[] values = new int[] { 42, 47, 48 };
            MemoryBinGrowthTestCase.MockGrowthStrategy strategy = new MemoryBinGrowthTestCase.MockGrowthStrategy
                                                                      (values);
            MemoryBin bin = NewBin(InitialSize, strategy);

            Write(bin, 0, InitialSize + 1, values[0]);
            Write(bin, values[0], 1, values[1]);
            Write(bin, values[1], 1, values[2]);
            strategy.Verify();
        }