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); }
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); }
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); }
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); }
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); }
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); }