Ejemplo n.º 1
0
        public void ReallocateMemoryAndReturnSteps()
        {
            BlockMemoryBank bank = new BlockMemoryBank(new int[] { 0, 2, 7, 0 });

            Assert.Equal(5, bank.CountReallocationCycles());
        }
Ejemplo n.º 2
0
        public void ReallocateMemoryAndIdentifyLoopLength()
        {
            BlockMemoryBank bank = new BlockMemoryBank(new int[] { 0, 2, 7, 0 });

            Assert.Equal(4, bank.CountReallocationLoopLength());
        }