Exemplo n.º 1
0
        public void SwapInTest()
        {
            PhysicalMemory mem   = new PhysicalMemory(10);
            PageTable      table = new PageTable(0);
            MemoryPage     m     = new MemoryPage(0, 0, "Unit Test", -1);

            mem.AddPage(m, 0);
            m.SwapOut(0, 0);
            m.SwapIn(0, 0);
            Assert.IsFalse(table.Entries[0].SwappedOut);
        }