Skip to content

Commit

Permalink
Fix failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kant2002 committed Jan 4, 2018
1 parent a727417 commit b36ab35
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,13 @@ internal ICollection<UnitTestElement> GetTests(
"MSTestDiscoverer.TryGetTests: Failed to discover tests from {0}. Reason:{1}",
assemblyFileName,
ex);
var message = string.Format(
CultureInfo.CurrentCulture,
Resource.TestAssembly_AssemblyDiscoveryFailure,
fullFilePath,
ex.Message);
var message = ex is FileNotFoundException fileNotFoundEx
? fileNotFoundEx.Message
: string.Format(
CultureInfo.CurrentCulture,
Resource.TestAssembly_AssemblyDiscoveryFailure,
fullFilePath,
ex.Message);
warnings.Add(message);
return null;
}
Expand Down

0 comments on commit b36ab35

Please sign in to comment.