public void test_createRulePackWithSourcesAndSinksRulesFromLddbFor_DotNet() { var ruleDbId = MiscUtils_OunceV6.getIdForSuportedLanguage(SupportedLanguage.DotNet).ToString(); // create just sources and sinks var sourcesRulePack = new O2RulePack("MySql_Sources", mySqlRules_OunceV6.getRules_Sources(ruleDbId)); var sourcesRulePackFile = O2RulePackUtils.saveRulePack(sourcesRulePack); Assert.That(File.Exists(sourcesRulePackFile), "sourcesRulePackFile doesn't exist"); var sinksRulePack = new O2RulePack("MySql_Sinks", mySqlRules_OunceV6.getRules_Sinks(ruleDbId)); var sinksRulePackFile = O2RulePackUtils.saveRulePack(sinksRulePack); Assert.That(File.Exists(sinksRulePackFile), "sinksRulePackFile doesn't exist"); }
private void cbLanguages_SelectedIndexChanged(object sender, EventArgs e) { currentLanguage = MiscUtils_OunceV6.getSupportedLanguageFromLanguageName(cbLanguages.Text); }