public void GetPreProcessedRules_ProvdingOneSimpleRule_ReturnsOnePreProcessedRule()
        {
            // arrange
            var rule = new Rule { RegularExpression = "inlinetext", Scope = TokenScope.Keyword };
            const string Code = "sample inlinetext provided";
            var preProcessedRules = new PreProcessedRules(
                Code,
                new List<Rule> { rule });

            // act
            var result = preProcessedRules.GetPreProcessedRules();

            //asert
            Assert.AreEqual(1, result.Count());
        } 
        public void GetPreProcessedRules_ProvdingOneSimpleRule_PreProcessedRuleContainsProperStartIndex()
        {
            // arrange
            var rule = new Rule { RegularExpression = "inlinetext", Scope = TokenScope.Keyword };
            const string Code = "sample inlinetext provided";
            var preProcessedRules = new PreProcessedRules(
                Code,
                new List<Rule> { rule });

            // act
            var result = preProcessedRules.GetPreProcessedRules().First();

            //asert
            Assert.AreEqual(7, result.StartIndex);
        }