示例#1
0
        public static void Main(string[] args)
        {
            ConsoleOutput.PrintMessage("BoxKite.Twitter Live Fire Tests (Application Auth)");
            ConsoleOutput.PrintMessage("(control-c ends at anytime)");

            System.Console.CancelKeyPress += cancelStreamHandler;

            twitterConnection = new TwitterConnection("3izxqWiej34yTlofisw", "uncicYQtDx5SoWth1I9xcn5vrpczUct1Oz9ydwTY4");

            // put the test series number you wish to run into the init of the array
            // then in each test group, put the numbers of the tests you would like to run
            // NOTE: some tests require a previous test to work successfully
            // NOTE: some tests post/delete items. This *is* a live fire test!

            var testSeriesToRun = new List <int> {
                12
            };

            // Calls tested by Test Series
            // series 12=> 5 (Application Only Auth tests)
            // =============
            // TOTAL       5

            // Test Series 12 Application Only Auth tests

            if (testSeriesToRun.Contains(12))
            {
                var cmbs         = new ApplicationOnlyAuthFireTests();
                var testResult12 = cmbs.DoApplicationOnlyAuthFireTests(twitterConnection, new List <int> {
                    2
                }).Result;

                if (testResult12)
                {
                    ConsoleOutput.PrintMessage(
                        String.Format("12.0 Application Auth Tests Status: {0}", testResult12),
                        ConsoleColor.White);
                }
                else
                {
                    ConsoleOutput.PrintMessage(
                        String.Format("12.0 Application Auth Tests Status: {0}", testResult12),
                        ConsoleColor.Red);
                }
            }
            ConsoleOutput.PrintMessage("Press Return to close window");
            System.Console.ReadLine();
        }
        public static void Main(string[] args)
        {
            ConsoleOutput.PrintMessage("BoxKite.Twitter Live Fire Tests (Application Auth)");
            ConsoleOutput.PrintMessage("(control-c ends at anytime)");

            System.Console.CancelKeyPress += cancelStreamHandler;

            twitterConnection = new TwitterConnection("3izxqWiej34yTlofisw", "uncicYQtDx5SoWth1I9xcn5vrpczUct1Oz9ydwTY4");

            // put the test series number you wish to run into the init of the array
            // then in each test group, put the numbers of the tests you would like to run
            // NOTE: some tests require a previous test to work successfully
            // NOTE: some tests post/delete items. This *is* a live fire test!

            var testSeriesToRun = new List<int> {12};

            // Calls tested by Test Series
            // series 12=> 5 (Application Only Auth tests)
            // =============
            // TOTAL       5

            // Test Series 12 Application Only Auth tests

            if (testSeriesToRun.Contains(12))
            {
                var cmbs = new ApplicationOnlyAuthFireTests();
                var testResult12 = cmbs.DoApplicationOnlyAuthFireTests(twitterConnection, new List<int> { 2 }).Result;

                if (testResult12)
                {
                    ConsoleOutput.PrintMessage(
                        String.Format("12.0 Application Auth Tests Status: {0}", testResult12),
                        ConsoleColor.White);
                }
                else
                {
                    ConsoleOutput.PrintMessage(
                        String.Format("12.0 Application Auth Tests Status: {0}", testResult12),
                        ConsoleColor.Red);
                }
            }
            ConsoleOutput.PrintMessage("Press Return to close window");
            System.Console.ReadLine();
        }