public void Part1_Exemple1_Step1() { var program = ProgramThatOutput(1, 0); var robot = new EHPR(program); robot.Step(); Assert.AreEqual(1, robot.Painting[new Vector2Int(0, 0)].First()); Assert.AreEqual(EHPR.Direction.LEFT, robot.CurrentDirection); Assert.AreEqual(new Vector2Int(-1, 0), robot.CurrentPosition); }
public void Part1_GoingRight_Step1() { var program = ProgramThatOutput(1, 1); var robot = new EHPR(program); robot.Step(); Assert.AreEqual(EHPR.Direction.RIGHT, robot.CurrentDirection); Assert.AreEqual(new Vector2Int(1, 0), robot.CurrentPosition); Assert.AreEqual(1, robot.Painting[new Vector2Int(0, 0)].Last()); }