public void ProcessPlayerDataSchema_WhenIncludeBuildSettingsScenesIsFalse_ShouldNotGenerateAnySceneLocations()
        {
            var scenePath = k_SchemaTestFolderPath + "/testScene.unity";

            Directory.CreateDirectory(Path.GetDirectoryName(scenePath));
            CreateScene(scenePath, Path.GetFileNameWithoutExtension(scenePath));

            var scenes = EditorBuildSettings.scenes;

            Assert.AreEqual(1, scenes.Length);

            var  group  = m_Settings.FindGroup(AddressableAssetSettings.PlayerDataGroupName);
            var  schema = group.GetSchema(typeof(PlayerDataGroupSchema)) as PlayerDataGroupSchema;
            bool includeBuildSettingsScenes = schema.IncludeBuildSettingsScenes;

            schema.IncludeBuildSettingsScenes = false;

            var errorStr = m_BuildScript.ProcessPlayerDataSchema(schema, group, m_BuildContext);

            Assert.True(string.IsNullOrEmpty(errorStr));

            var actualLocations = m_BuildContext.locations.Where(l => l.ResourceType == typeof(SceneInstance)).ToList();

            Assert.AreEqual(0, actualLocations.Count);

            // TODO : Assert for existence of SceneProvider (not exposed)

            schema.IncludeBuildSettingsScenes = includeBuildSettingsScenes;
        }
        public void ProcessPlayerDataSchema_Scenes_IncludeBuildSettingsScenesIsFalse_ShouldNotGenerateLocationsOrProviders()
        {
            CreateBuiltInTestScene(k_SchemaTestFolder + "/TestScenes/testScene.unity");

            var group  = Settings.FindGroup(AddressableAssetSettings.PlayerDataGroupName);
            var schema = group.GetSchema(typeof(PlayerDataGroupSchema)) as PlayerDataGroupSchema;

            schema.IncludeBuildSettingsScenes = false;

            var errorStr = m_BuildScript.ProcessPlayerDataSchema(schema, group, m_BuildContext);

            Assert.True(string.IsNullOrEmpty(errorStr));

            var actualLocations = m_BuildContext.locations;

            Assert.AreEqual(0, actualLocations.Count);

            var expectedProviderCount = 0;
            var actualProviderIds     = m_BuildScript.ResourceProviderData.Select(r => r.Id).ToArray();

            Assert.AreEqual(expectedProviderCount, actualProviderIds.Length);
        }