Ejemplo n.º 1
0
        public void ConfirmExitModalCorrectly()
        {
            // Arrange
            bool exitConfirmed = false;

            buildModeHUDController.OnLogoutAction += () => { exitConfirmed = true; };

            // Act
            buildModeHUDController.ConfirmExitModal(BuildModeModalType.EXIT);

            // Assert
            Assert.IsTrue(exitConfirmed, "exitConfirmed is false!");
        }
        public void ConfirmExitModalCorrectly()
        {
            // Arrange
            bool exitConfirmed = false;

            buildModeHUDController.OnLogoutAction += () => { exitConfirmed = true; };

            // Act
            buildModeHUDController.ConfirmExitModal(BuildModeModalType.EXIT);

            // Assert
            Assert.IsTrue(exitConfirmed, "exitConfirmed is false!");
            buildModeHUDController.controllers.publicationDetailsController.Received().SetDefaultPublicationInfo();
        }