Пример #1
0
        public void OutputModeNone()
        {
            var configFile = Path.Combine(processingConfigFile, "outputmodenone.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(OutputMode.None, cfg.OutputMode);
        }
Пример #2
0
        public void OutputModeAllInLowerCaseShouldWork()
        {
            var configFile = Path.Combine(processingConfigFile, "outputmodemultiplelineslowercase.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(OutputMode.MultipleLines, cfg.OutputMode);
        }
Пример #3
0
        public void EvanTreatmentMakeImmediateSafee()
        {
            var configFile = Path.Combine(processingConfigFile, "evantreatmentmakeimmediatesafe.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(EvalTreatment.MakeImmediateSafe, cfg.EvalTreatment);
        }
Пример #4
0
        public void EvanTreatmentIgnore()
        {
            var configFile = Path.Combine(processingConfigFile, "evantreatmentignore.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(EvalTreatment.Ignore, cfg.EvalTreatment);
        }
Пример #5
0
        public void EvanTreatmentInUpperCaseShouldWork()
        {
            var configFile = Path.Combine(processingConfigFile, "evantreatmentmakeallsafeuppercase.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(EvalTreatment.MakeAllSafe, cfg.EvalTreatment);
        }
Пример #6
0
        public void IndendSize()
        {
            var configFile = Path.Combine(processingConfigFile, "indentsize.json");
            var configs    = ConfigHandler.GetConfigs(configFile);
            var cfg        = JavaScriptOptions.GetSettings(configs.ElementAt(0));

            Assert.AreEqual(8, cfg.IndentSize);
        }