public void RestoreRobotStateTest()//inapropriate naming { //Arrange var robot = new CyborgRobot(null); var robotMemento = new RobotMemento(30); //Act robot.RestoreState(robotMemento); //Assert Assert.Equal(30, robot.BatteryCharge); }
public void RestoreState() { //Arrange var robot = new CyborgRobot(null); var robotMemento = new RobotMemento(30); //Act robot.RestoreState(robotMemento); //Assert Assert.Equal(30, robot.BatteryCharge); }