public async Task Test01_GetAutomationRepoBranchesTest()
        {
            AutomationSequencer sequencer = new AutomationSequencer()
            {
                AutomationRunnerSettings      = this.AutomationRunnerSettings,
                AutomationRunMode             = AutomationRunMode.Interactive,
                WoTClientVersion              = "TODO",
                WoTModpackOnlineFolderVersion = "TODO"
            };

            throw new BadMemeException("you should, like, finish this");

            /*
             * //TODO: dynamically get this from the beta db?
             * ApplicationSettings.WoTModpackOnlineFolderVersion = "1.10.0";
             * ApplicationSettings.WoTClientVersion = "1.10.0.4";
             */

            await sequencer.LoadBranchesListAsync();

            await sequencer.LoadRootDocumentAsync();

            await sequencer.LoadGlobalMacrosAsync();

            List <DatabasePackage> DatabasePackages = new List <DatabasePackage>();

            DatabasePackages.Add(new SelectablePackage()
            {
                UID            = "123456789ABCD",
                PackageName    = "Some_rofl_op_russian_medium",
                ParentCategory = new Category()
                {
                    Name = "Cat_name"
                },
                Level = 0
            });
            bool loadAutomationSequencesResult = await sequencer.LoadAutomationSequencesAsync(DatabasePackages);

            bool parseAutomationSequencesResult = sequencer.ParseAutomationSequences();
            bool runSequencesResult             = await sequencer.RunSequencesAsync();

            //Assert.IsFalse(string.IsNullOrEmpty(LatestSupportedWoTVersion));
            //Assert.IsFalse(string.IsNullOrEmpty(LatestSupportedWoTVersion));
        }
예제 #2
0
        public async Task Test01_GetAutomationRepoBranchesTest()
        {
            AutomationSequencer sequencer = new AutomationSequencer()
            {
                AutomationRunnerSettings = new AutomationRunnerSettings()
                {
                    SelectedBranch = "master" // is default
                }
            };

            await sequencer.LoadBranchesListAsync();

            await sequencer.LoadRootDocumentAsync();

            await sequencer.LoadGlobalMacrosAsync();

            //Assert.IsFalse(string.IsNullOrEmpty(LatestSupportedWoTVersion));
            //Assert.IsFalse(string.IsNullOrEmpty(LatestSupportedWoTVersion));
        }