public void DefaultInstanceTest() { VisualStudioInstance instance = MSBuildLocator.QueryVisualStudioInstances(VisualStudioInstanceQueryOptions.Default).FirstOrDefault(); instance.ShouldNotBeNull(); #if NETCOREAPP instance.DiscoveryType.ShouldBe(DiscoveryType.DotNetSdk); #else instance.DiscoveryType.ShouldNotBe(DiscoveryType.DotNetSdk); #endif }