public void SqlVersionSequenceValid()
        {
            var sqlVersionHelper = new SqlVersionHelper();

            var v80 = sqlVersionHelper.GetVersion(SqlVersion.Sql80);

            Assert.AreEqual(80, v80);

            var v90 = sqlVersionHelper.GetVersion(SqlVersion.Sql90);

            Assert.AreEqual(90, v90);

            var v100 = sqlVersionHelper.GetVersion(SqlVersion.Sql100);

            Assert.AreEqual(100, v100);

            var v110 = sqlVersionHelper.GetVersion(SqlVersion.Sql110);

            Assert.AreEqual(110, v110);

            var v120 = sqlVersionHelper.GetVersion(SqlVersion.Sql120);

            Assert.AreEqual(120, v120);

            var v130 = sqlVersionHelper.GetVersion(SqlVersion.Sql130);

            Assert.AreEqual(130, v130);
        }
        public RuleConfigurationControl()
        {
            InitializeComponent();

            var sqlVersionHelper = new SqlVersionHelper();
            var versions         = Enum.GetNames(typeof(SqlVersion));
            var sortedVersions   = versions.OrderBy(x => sqlVersionHelper.GetVersion((SqlVersion)Enum.Parse(typeof(SqlVersion), x))).ToArray();

            comboBoxMinSqlVersion.Items.Clear();
            comboBoxMinSqlVersion.Items.Add(NullVersion);
            comboBoxMinSqlVersion.Items.AddRange(sortedVersions);

            comboBoxMaxSqlVersion.Items.Clear();
            comboBoxMaxSqlVersion.Items.Add(NullVersion);
            comboBoxMaxSqlVersion.Items.AddRange(sortedVersions);
        }