Beispiel #1
0
        public void RunBeforeAllTests()
        {
            Assert.IsFalse(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsTrue(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);

            O2ConfigSettings.CheckForTempDirMaxSizeCheck        = true;
            PublicDI.log.LogRedirectionTarget.alsoShowInConsole = false;

            Assert.IsTrue(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsFalse(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);

            var testsConfig = new Tests_Config();
            testsConfig.RunBeforeAllTests();
            testsConfig.RunAfterAllTests();

            Assert.IsFalse(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsTrue(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);
        }
Beispiel #2
0
        public void RunBeforeAllTests()
        {
            Assert.IsFalse(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsTrue(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);

            O2ConfigSettings.CheckForTempDirMaxSizeCheck        = true;
            PublicDI.log.LogRedirectionTarget.alsoShowInConsole = false;

            Assert.IsTrue(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsFalse(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);

            var testsConfig = new Tests_Config();

            testsConfig.RunBeforeAllTests();
            testsConfig.RunAfterAllTests();

            Assert.IsFalse(O2ConfigSettings.CheckForTempDirMaxSizeCheck);
            Assert.IsTrue(PublicDI.log.LogRedirectionTarget.alsoShowInConsole);
        }