Example #1
0
        public void SetExcludeMethodsFilter_Of_GetNewPriceHistory_Does_Not_Return_GetNewPriceHistory_Files()
        {
            CachedFilesFinder.SetIncludeMethodsFilter();
            CachedFilesFinder.SetExcludeMethodsFilter();

            CachedFilesFinder.SetExcludeMethodsFilter(s_getNewPriceHistoryText);
            FileInfo[] files = CachedFilesFinder.GetMachoNetCachedFiles(s_testFolder);

            foreach (CachedFileReader cfr in files.Select(file => new CachedFileReader(file, doSecurityCheck: false)))
            {
                Assert.False(Encoding.ASCII.GetString(cfr.Buffer).Contains(s_getNewPriceHistoryText));
            }
        }
Example #2
0
 public void GetMachoNetCachedFiles_Returns_Collection_Of_Cached_Files()
 {
     FileInfo[] files = CachedFilesFinder.GetMachoNetCachedFiles(s_testFolder);
     Assert.NotEmpty(files);
 }