public void Setup()
 {
     if (null == view)
     {
         view = (MainView)SceneNodeView.FindObjectOfType(typeof(MainView));
         view.Setup();
     }
     spelling.Setup();
     spelling.Populate();
     building.model.cellCount = DataUtil.Length(spelling.model.table) - 1;
     building.Setup();
 }
Exemplo n.º 2
0
        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]));
             */
        }