public void SLMM_StaysIn_Boundaries(int test) { commandList = new List <Command>(); if (test == 0) { commandList.Add(Command.TurnLeft); // face east } else { commandList.Add(Command.TurnLeft); commandList.Add(Command.TurnLeft); // face south } commandList.Add(Command.Move); commandList.Add(Command.Stop); foreach (var command in commandList) { _slmm.PushCommand(command); } _slmm.Start(); var position = _slmm.GetPosition; Assert.AreEqual(position["width"], 0); Assert.AreEqual(position["length"], 0); }
public void StartSLMM() { _slmm.Start(); }