public void LoadingRobotState() { // Arrange (in setup) // Act _robot.Load("test1.json"); // Assert Assert.AreEqual(3, _robot.State.Location.X); Assert.AreEqual(0, _robot.State.Location.Y); Assert.AreEqual(CleaningRobotFacing.North, _robot.State.Facing); Assert.AreEqual(80, _robot.State.Battery); }
/// <summary> /// Load initial params from file /// </summary> public void Load(string inputFileName) { _map.Load(inputFileName); _robot.Load(inputFileName); _givenStrategy.Load(inputFileName); }