public void Test_SearchWordDoc(string targetStr, string fileFullPath) { BaseSearcher searcher = new WordSearcher(); searcher.StartSearch(targetStr, new List <string>() { fileFullPath }); BaseSearcher.ReportFindFileEvent += (file) => { Assert.AreEqual(fileFullPath, file); }; Thread.Sleep(1000); }