예제 #1
0
        public void CreateBuildModeControllersCorrectly()
        {
            // Arrange
            buildModeHUDController.controllers.tooltipController                = null;
            buildModeHUDController.controllers.sceneCatalogController           = null;
            buildModeHUDController.controllers.quickBarController               = null;
            buildModeHUDController.controllers.entityInformationController      = null;
            buildModeHUDController.controllers.firstPersonModeController        = null;
            buildModeHUDController.controllers.shortcutsController              = null;
            buildModeHUDController.controllers.publishPopupController           = null;
            buildModeHUDController.controllers.dragAndDropSceneObjectController = null;
            buildModeHUDController.controllers.publishBtnController             = null;
            buildModeHUDController.controllers.inspectorBtnController           = null;
            buildModeHUDController.controllers.catalogBtnController             = null;
            buildModeHUDController.controllers.inspectorController              = null;
            buildModeHUDController.controllers.topActionsButtonsController      = null;

            // Act
            buildModeHUDController.CreateBuildModeControllers();

            // Assert
            Assert.NotNull(buildModeHUDController.controllers.tooltipController, "The tooltipController is null!");
            Assert.NotNull(buildModeHUDController.controllers.sceneCatalogController, "The sceneCatalogController is null!");
            Assert.NotNull(buildModeHUDController.controllers.quickBarController, "The quickBarController is null!");
            Assert.NotNull(buildModeHUDController.controllers.entityInformationController, "The entityInformationController is null!");
            Assert.NotNull(buildModeHUDController.controllers.firstPersonModeController, "The firstPersonModeController is null!");
            Assert.NotNull(buildModeHUDController.controllers.shortcutsController, "The shortcutsController is null!");
            Assert.NotNull(buildModeHUDController.controllers.publishPopupController, "The publishPopupController is null!");
            Assert.NotNull(buildModeHUDController.controllers.dragAndDropSceneObjectController, "The dragAndDropSceneObjectController is null!");
            Assert.NotNull(buildModeHUDController.controllers.publishBtnController, "The publishBtnController is null!");
            Assert.NotNull(buildModeHUDController.controllers.inspectorBtnController, "The inspectorBtnController is null!");
            Assert.NotNull(buildModeHUDController.controllers.catalogBtnController, "The catalogBtnController is null!");
            Assert.NotNull(buildModeHUDController.controllers.inspectorController, "The inspectorController is null!");
            Assert.NotNull(buildModeHUDController.controllers.topActionsButtonsController, "The topActionsButtonsController is null!");
        }