public void Update() { spelling.Update(); building.Update(); if (building.model.isSelectNow) { building.model.isSelectNow = false; spelling.model.contentIndex = building.model.selectedIndex; spelling.Populate(); } else if (spelling.model.isExitNow) { if (1 <= spelling.model.answerCount) { building.model.Answer(spelling.model.answerCount); } spelling.model.isExitNow = false; building.model.state = "spellingToBuilding"; } else if (spelling.model.isAnswerAllNow) { spelling.model.isAnswerAllNow = false; building.model.state = "spellingToBuilding"; building.model.Complete(); } AnimationView.SetState(view.state, building.model.state); }
public void UpdateAnimation() { var controller = new BuildingController(); controller.model.cellCount = 2; controller.Setup(); controller.Update(); /* TODO * Assert.AreEqual(controller.model.cellStates[0], * AnimationView.GetState(controller.view.cellStates[0])); * Assert.AreEqual(controller.model.cellStates[1], * AnimationView.GetState(controller.view.cellStates[1])); */ }