public void LoadingMap() { // Arrange (in setup) // Act _map.Load("test1.json"); // Assert Assert.AreEqual(16, _map.Cells.Length); Assert.AreEqual(4, _map.Cells.GetLength(0)); Assert.AreEqual(4, _map.Cells.GetLength(1)); Assert.AreEqual(RoomMapCellState.Cleanable, _map.Cells[0, 0]); Assert.AreEqual(RoomMapCellState.NotCleanable, _map.Cells[2, 1]); Assert.AreEqual(RoomMapCellState.Empty, _map.Cells[1, 3]); }
/// <summary> /// Load initial params from file /// </summary> public void Load(string inputFileName) { _map.Load(inputFileName); _robot.Load(inputFileName); _givenStrategy.Load(inputFileName); }