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 SetAndGetCellMethods() { LM3Memory memory = new LM3Memory(); //EmptyCell cell = new EmptyCell(); Variable var = new Variable("10"); memory.SetCellByAddress("0100", var); Assert.AreEqual(var, memory.GetCellByAddress("0100")); }