コード例 #1
0
        public void Search_TextToSearchParameterIsNull_ReturnsZeroPatternHits()
        {
            var configuration = new Configuration();
            var patternMatcher = new PatternMatcher(configuration);

            var patternHits = patternMatcher.Search(null);

            Assert.AreEqual(0, patternHits.Count());
        }
コード例 #2
0
        public AliasBeGonePackage()
        {
            var configuration = new Configuration();
            var resourceManager = new ResourceReader(SNIPPETS_NAMESPACE);
            _patternMatcher = new PatternMatcher(configuration);
            _snippetsManager = new SnippetsManager(configuration, resourceManager);

            _snippetsInstalled = _snippetsManager.IsInstalled;
        }