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 void SetAndGetCellPositionMethods()
        {
            LM3Memory memory = new LM3Memory();
            Variable var = new Variable("10");
            CommandPosition position = new CommandPosition(10, 2, 5);

            memory.SetCellByAddress("0100", var);
            memory.SetCellNameByAddress("0100", "X");
            memory.SetCellPositionByAddress("0100", position);

            Assert.AreEqual(position, memory.GetCellPositionByAddress("0100"));
        }
        public void SetCellPositionByAddress(string address, CommandPosition commandPosition)
        {
            // Nonsignificant zeroes deleting
            address = Convert.ToInt32(address).ToString();

            TestForAddressCorrectness(address);

            mMemoryCellsPositions[address] = commandPosition;
        }