Example #1
0
		public void CreateFiltersFromList()
		{
			FilterList filters = FilterList.FromString(BuildSeparatedPath(".{0}test{0};test{0};.{0}test.ext;test.ext"));
			Assert.AreEqual<int>(4, filters.Count);
			Assert.IsInstanceOfType(filters[0], typeof(RelativeDirectoryFilter));
			Assert.IsInstanceOfType(filters[1], typeof(GlobalDirectoryFilter));
			Assert.IsInstanceOfType(filters[2], typeof(RelativeFileFilter));
			Assert.IsInstanceOfType(filters[3], typeof(GlobalFileFilter));
		}