public void FindAppliesFilter() { string resourceName = "myscriptfile.js"; _dirMgr.CreateFile(resourceName, ""); string filteredResourceName = "filtered.js"; _dirMgr.CreateFile(filteredResourceName, ""); _finder = ResourceFinderFactory.GetInstance(_dirMgr.DirectoryName); var resources = _finder.FindResources(ResourceType.Script) .Where(r => r.Name != filteredResourceName).ToList(); Assert.That(resources, Is.Not.Null); Assert.That(resources.Count, Is.EqualTo(1)); Assert.That(resources[0].Name, Is.EqualTo(resourceName)); }
public void Setup() { _dirMgr = new TempDirectoryManager(); _finder = ResourceFinderFactory.GetInstance(_dirMgr.DirectoryName); }
public void Init() { _instance = ResourceFinderFactory.GetInstance(this.GetType().Assembly); }