Beispiel #1
0
        static async Task <int> Main(string[] args)
        {
            Console.WriteLine("online");
            ConfigHubTests();
            // Test
            var f = new FeatureHardCodedProvider();

            f.AddFeature(new Feature("TEST", true));



            if (Feature.GetFeatureByName("TEST").Active)
            {
            }

            CommandLineArgs        cla  = new CommandLineArgs();
            CommandArgumentSupport clas = new CommandArgumentSupport();

            clas.ProcessArguments(cla, args);
            clas.AddExample("TestConsoleApp.exe -x", "Runs it with an x parameter");
            string sa = clas.GenerateShortHelp(cla, "TestConsoleApp");

            Console.WriteLine("sec");
            Console.WriteLine(sa);

            await HHTestExecute();

            Console.ReadLine();

            return(0);
        }
        public void HardcodedFP_AddFeatureCanGet()
        {
            b.Info.Flow();

            var f = new Feature(FEATURENAME, true);
            FeatureHardCodedProvider sut = new FeatureHardCodedProvider();

            sut.AddFeature(f);
            var result = sut.GetFeature(FEATURENAME);


            Assert.Same(f, result);
        }