Example #1
0
        public void SetPreviousDialogActiveTest()
        {
            this.dialog1.Active = true;
            this.dialog2.Active = false;

            MenuModel target = new MenuModel();
            target.MenuDialogs = this.dialogs;
            target.SetActiveDialogByIndex(1);
            target.SetPreviousDialogActive();

            Assert.IsTrue(dialog1.Active);
            Assert.IsFalse(dialog2.Active);
        }