public void LM3MemoryFillerTestOne() { LM3Memory memory = new LM3Memory(); LM3MemoryFiller filler = new LM3MemoryFiller(memory); LM3Command command = new LM3Command("86", 4097, 4097, 4097); filler.AddCommand("0101", "86", "1001", "1001", "1001"); Assert.AreEqual(command.ToString(), memory.GetCellByAddress("0257").ToString()); }
public void LM3MemoryFillerTestTwo() { LM3Memory memory = new LM3Memory(); LM3MemoryFiller filler = new LM3MemoryFiller(memory); LM3Command command = new LM3Command("86", 1001, 1001, 1001); CommandPosition position = new CommandPosition(10, 2, 5); filler.AddCommand("0101", "86", "1001", "1001", "1001"); filler.AddCommandPosition("0101", position); Assert.AreEqual(position, memory.GetCellPositionByAddress("0257")); }
public LM3ProgramXMLLoader(LM3MemoryFiller memoryFiller) { mMemoryFiller = memoryFiller; }