Skip to content

Commit

Permalink
AbstractAcceptanceTest integrationtest fix for vs2019
Browse files Browse the repository at this point in the history
the new vs2019 (16.2.0) test explorer has an issue with GetAssemblies when it tries to load internal test assemblies
microsoft/vstest#2008

with this fix the Microsoft assemblies are not loaded when an integration test runs (FunctionMonkey.Testing.AbstractAcceptanceTest)
  • Loading branch information
vip32 committed May 29, 2019
1 parent 751673b commit b5b5b9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FunctionMonkey/ConfigurationLocator.cs
Expand Up @@ -40,7 +40,7 @@ public static IFunctionAppConfiguration FindConfiguration()

private static bool Scan(out MethodInfo linkBackInfo, out IFunctionAppConfiguration findConfiguration)
{
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies().Where(a => !a.GetName().Name.StartsWith("Microsoft.")).ToArray();
linkBackInfo = null;
findConfiguration = null;

Expand Down

0 comments on commit b5b5b9c

Please sign in to comment.