public void GetResourceContent_ResourceNameEnteredWithPrefixDot_ReturnsContent()
        {
            var resourceReader = new ResourceReader("Brage.AliasBeGone.Snippets");

            var resourceContent = resourceReader.GetResourceContent(".Boolean.snippet");

            Assert.IsFalse(String.IsNullOrEmpty(resourceContent));
        }
        public void GetResourceContent_ResourceThatExists_ReturnsContent()
        {
            var resourceReader = new ResourceReader("Brage.AliasBeGone.Snippets");

            var resourceContent = resourceReader.GetResourceContent("Boolean.snippet");

            Assert.IsFalse(String.IsNullOrEmpty(resourceContent));
        }
        public void GetResourceContent_ResourceDoesntExist_ReturnsNull()
        {
            var resourceReader = new ResourceReader("Brage.AliasBeGone.Snippets");

            var resourceContent = resourceReader.GetResourceContent("DOESNTEXIST.snippet");

            Assert.AreEqual(null, resourceContent);
        }
        public AliasBeGonePackage()
        {
            var configuration = new Configuration();
            var resourceManager = new ResourceReader(SNIPPETS_NAMESPACE);
            _patternMatcher = new PatternMatcher(configuration);
            _snippetsManager = new SnippetsManager(configuration, resourceManager);

            _snippetsInstalled = _snippetsManager.IsInstalled;
        }