static CalculateCustomDependencyData CreateDefaultBuildTask(List <CustomContent> customAssets, Dictionary <GUID, AssetLoadInfo> assetInfo = null)
        {
            var task        = new CalculateCustomDependencyData();
            var testParams  = new TestBuildParameters();
            var testContent = new TestContent(customAssets);

            if (assetInfo == null)
            {
                assetInfo = new Dictionary <GUID, AssetLoadInfo>();
            }
            var           testData = new TestDependencyData(assetInfo);
            IBuildContext context  = new BuildContext(testParams, testContent, testData);

            ContextInjector.Inject(context, task);
            return(task);
        }
        static void ExtractTestData(IBuildTask task, out CustomAssets customAssets, out TestContent content, out TestDependencyData dependencyData)
        {
            IBuildContext context = new BuildContext();

            ContextInjector.Extract(context, task);
            customAssets   = (CustomAssets)context.GetContextObject <ICustomAssets>();
            content        = (TestContent)context.GetContextObject <IBundleBuildContent>();
            dependencyData = (TestDependencyData)context.GetContextObject <IDependencyData>();
        }