public void GetDirectoriesWithUncPath() { this.mockConfig.Setup(x => x.AppSettings).Returns(new NameValueCollection { { "IgnoreDirectoriesFilterList", string.Empty }, { "IgnoreDirectoriesFilterMatchCase", "true" } }); var candidate = new IgnoreDirectoriesFileFilterHelper(this.mockConfig.Object).CallGetNonRootDirectoriesInFilePath(TestUncPath).ToList(); Assert.AreEqual(candidate.Count, 3); Assert.AreEqual(candidate[0], "test"); Assert.AreEqual(candidate[1], "filedrop"); Assert.AreEqual(candidate[2], "dev"); }
public void GetDirectoriesWithUncPath() { this.mockConfig.Setup(x => x.AppSettings).Returns(new NameValueCollection { { "IgnoreDirectoriesFilterList", string.Empty }, { "IgnoreDirectoriesFilterMatchCase", "true" } }); var candidate = new IgnoreDirectoriesFileFilterHelper(this.mockConfig.Object).CallGetNonRootDirectoriesInFilePath(TestUncPath).ToList(); Assert.AreEqual(candidate.Count, 3); Assert.AreEqual(candidate[0], "test"); Assert.AreEqual(candidate[1], "filedrop"); Assert.AreEqual(candidate[2], "dev"); }