public void IsFileExcludedTest() { var idxr = new Indexer("","","",AppDomain.CurrentDomain.BaseDirectory); List<string> excludedList = new List<string>(); for (int j = 0; j < files.Length; j++) { string fileName = files[j]; if (!idxr.IsFileIncluded(fileName, patterns)) { Console.WriteLine("Excluded: {0}", fileName); excludedList.Add(fileName); } } Assert.AreEqual(this.fileIsExcludedList.Length, excludedList.Count); }