Ejemplo n.º 1
0
 public void EntityListChanged()
 {
     if (HUDController.i.builderInWorldMainHud == null)
     {
         return;
     }
     hudController.SetEntityList(GetEntitiesInCurrentScene());
 }
        public void SetEntityListCorrectly()
        {
            // Arrange
            List <BIWEntity> testEntityList = new List <BIWEntity>();

            testEntityList.Add(new BIWEntity());
            testEntityList.Add(new BIWEntity());
            testEntityList.Add(new BIWEntity());

            // Act
            buildModeHUDController.SetEntityList(testEntityList);

            // Assert
            buildModeHUDController.controllers.inspectorController.Received(1).SetEntityList(testEntityList);
        }
Ejemplo n.º 3
0
        public void SetEntityListCorrectly()
        {
            // Arrange
            List <DCLBuilderInWorldEntity> testEntityList = new List <DCLBuilderInWorldEntity>();

            testEntityList.Add(new GameObject("_DCLBuilderInWorldEntity1").AddComponent <DCLBuilderInWorldEntity>());
            testEntityList.Add(new GameObject("_DCLBuilderInWorldEntity2").AddComponent <DCLBuilderInWorldEntity>());
            testEntityList.Add(new GameObject("_DCLBuilderInWorldEntity3").AddComponent <DCLBuilderInWorldEntity>());

            // Act
            buildModeHUDController.SetEntityList(testEntityList);

            // Assert
            buildModeHUDController.controllers.inspectorController.Received(1).SetEntityList(testEntityList);
        }