public void FixtureSetup()
        {
            this.testFrame = new ChaskisTestFramework();

            ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
            {
                Environment = "HttpServerEnvironment"
            };

            this.testFrame.PerformFixtureSetup(fixtureConfig);
        }
Beispiel #2
0
        public void FixtureSetup()
        {
            this.testFrame = new ChaskisTestFramework();

            ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
            {
                Environment = "MessageFixerBotEnvironment"
            };

            this.testFrame.PerformFixtureSetup(fixtureConfig);
        }
Beispiel #3
0
        public void FixtureSetup()
        {
            this.testFrame = new ChaskisTestFramework();

            ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
            {
                Environment = null, // Use Default Environment.
            };

            this.testFrame.PerformFixtureSetup(fixtureConfig);
        }
Beispiel #4
0
            public void FixtureSetup()
            {
                this.TestFrame = new ChaskisTestFramework();

                ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
                {
                    Environment        = "NewVersionNotifierNoFileEnvironment",
                    ConnectionWaitMode = ConnectionWaitMode.WaitForConnected
                };

                this.TestFrame.PerformFixtureSetup(fixtureConfig);
            }
Beispiel #5
0
            public void FixtureSetup()
            {
                this.testFrame = new ChaskisTestFramework();

                ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
                {
                    Environment        = "PasswordEnvironment",
                    ConnectionWaitMode = ConnectionWaitMode.DoNotWait
                };

                this.testFrame.PerformFixtureSetup(fixtureConfig);
            }
Beispiel #6
0
            public void FixtureSetup()
            {
                this.testFrame = new ChaskisTestFramework();

                ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
                {
                    Environment        = null, // Use Default Environment.
                    ConnectionWaitMode = ConnectionWaitMode.DoNotWait
                };

                this.testFrame.PerformFixtureSetup(fixtureConfig);
            }
Beispiel #7
0
        public void FixtureSetup()
        {
            this.testFrame = new ChaskisTestFramework();

            ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
            {
                Environment = "CapsWatcherEnvironment"
            };

            this.testFrame.PerformFixtureSetup(fixtureConfig);

            // Turn on full verbosity for caps watcher.
            this.testFrame.IrcServer.SendMessageToChannelAs(
                "!chaskisbot debug verbosity capswatcher 3",
                TestConstants.BotName,
                TestConstants.AdminUserName
                );
            this.testFrame.IrcServer.WaitForMessageOnChannel(
                @"'capswatcher'\s+log\s+verbosity\s+has\s+been\s+set\s+to\s+'3'",
                TestConstants.AdminUserName
                ).FailIfFalse("Could not set verbosity");
        }
Beispiel #8
0
        public void FixtureSetup()
        {
            this.testFrame = new ChaskisTestFramework();
            this.testFrame.SetupLog();

            ChaskisFixtureConfig fixtureConfig = new ChaskisFixtureConfig
            {
                Environment = "rssbotenvironment"
            };

            this.testFilesLocation = Path.Combine(
                this.testFrame.EnvironmentManager.ChaskisProjectRoot,
                "UnitTests",
                "PluginTests",
                "Plugins",
                "RssBot",
                "TestFiles"
                );

            this.testFrame.HttpServer.MapFileToUrl(
                Path.Combine(this.testFilesLocation, "Reddit_Init.xml"),
                xmlFileName
                );
            this.testFrame.HttpServer.StartHttpServer(httpServerPort);

            // Now, perform the common fixture setup.
            this.testFrame.PerformFixtureSetup(fixtureConfig);

            this.testFrame.IrcServer.SendMessageToChannelAs(
                $"!{TestConstants.BotName} debug verbosity rssbot 3",
                TestConstants.BotName,
                TestConstants.AdminUserName
                );

            this.testFrame.IrcServer.WaitForMessageOnChannel(
                @"'rssbot'\s+log\s+verbosity\s+has\s+been\s+set\s+to\s+'3'",
                TestConstants.AdminUserName
                ).FailIfFalse("Could not turn on RSS Debug");
        }