public void Test_populateComboBoxWithO2FindingsScriptLibrary()
        {
            string titleOfDefaultScript = "Default o2Findings Linq Script";
            var    scriptComboBox       = new ComboBox();

            OzasmtLinq.populateComboBoxWithO2FindingsLinqScriptLibraryTitles(scriptComboBox);
            Assert.That(scriptComboBox.Items.Count > 0, "There were no O2JavaScript loaded into scriptComboBox");
            string defaultScript = scriptComboBox.Items[0].ToString();

            Assert.That(defaultScript == titleOfDefaultScript,
                        "scriptComboBox.Items[0] should be '" + titleOfDefaultScript + "' and was " +
                        scriptComboBox.Items[0] + "  -");
            Assert.That(OzasmtLinq.getO2FindingLinqScript(defaultScript) != "",
                        "could not retrived the contents of defaultScript");
            Assert.That(OzasmtLinq.getO2FindingLinqScript("nothing here") == "",
                        "requesting for a non existent script should return an empty string");
        }
 private void cbScriptLibrary_SelectedIndexChanged(object sender, EventArgs e)
 {
     tbNLinqQuery.Text = OzasmtLinq.getO2FindingLinqScript(cbScriptLibrary.Text);
     runNLinkQuery();
 }