public void TestSetup() { _roomHandler = new Mock <IRoomHandler>(); _roomHandler.Setup(x => x.CheckBoundaries(It.IsAny <int>(), It.IsAny <int>())).Returns((int x, int y) => { if (x < 0 || x >= 5) { return(false); } if (y < 0 || y >= 5) { return(false); } return(true); }); _RobotHandler = new RobotHandler(_roomHandler.Object); _RobotHandlerPrivateObject = new PrivateObject(_RobotHandler); }
private void InitRobotController() { _robotHandler = new RobotHandler("172.31.1.147", 30002); //_armHandler = new ArmHandler("127.0.0.1", 6065); }
private void InitRobotController() { _robotHandler = new RobotHandler(ConfigHelper.GetInstance().RobotIP, ConfigHelper.GetInstance().RobotPort); }