Exemplo n.º 1
0
        public void LoadEmptyScene_And_OnNextFrame_ShouldNotUnloadAssets_GivenPreserveAssetsSceneLoadMode()
        {
            // Arrange
            const string sceneBehaviorName = "Behavior name";
            var          scene             = TestSceneFactory.Create();

            SetUpSceneBehavior(sceneBehaviorName, scene);
            _sceneFactory.Create().Returns(scene);

            // Act
            // ReSharper disable once RedundantArgumentDefaultValue
            _sceneManager.LoadEmptyScene(sceneBehaviorName, SceneLoadMode.PreserveAssets);
            _sceneManager.OnNextFrame();

            // Assert
            _assetStore.DidNotReceive().UnloadAssets();
        }