Esempio n. 1
0
 public RegionSearchState(IRegionRule regionRule)
 {
     this.RegionRule       = regionRule ?? throw new ArgumentNullException(nameof(regionRule));
     this.subRegionsStates = new List <RegionSearchState>();
     this.regionSymbols    = new Dictionary <RuleCheckResult, List <char> >();
 }
Esempio n. 2
0
        public void SharedKeyWordRegionRuleShouldReturnExpectedResult(IRegionRule regionRule, char currentChar, char?nextChar, string currentRegion, RuleCheckResult expectedResult)
        {
            var ruleCheckStatus = regionRule.Check(currentChar, nextChar, currentRegion);

            ruleCheckStatus.Should().Be(expectedResult);
        }