Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dotnet test does not use the correct .NET Framework runtime - report false test failures #2391

Closed
wli3 opened this issue Apr 8, 2020 · 3 comments

Comments

@wli3
Copy link

wli3 commented Apr 8, 2020

From @TalAloni on Saturday, March 21, 2020 4:16:42 PM

I have created a minimal xUnit test project demonstrating the problem (the test project use the SDK-style csproj, and target net472).
VSTest.Console works as expected.
when running the test with dotnet test, it will throw the following exception:
System.ArgumentException : The specified value is not valid in the 'SslProtocolType' enumeration.
This exception is not thrown by .NET Framework 4.7.2

dotnet SDK version: 3.1.200
Test Execution Command Line Tool Version 16.5.0

Project demonstrating the problem:
https://github.com/TalAloni/dotnettest-xunit

Copied from original issue: dotnet/sdk#10956

@wli3
Copy link
Author

wli3 commented Apr 8, 2020

From @TalAloni on Sunday, March 22, 2020 7:36:14 PM

Update: This problem does not reproduce with MS Test v2, seems to be limited to xUnit

@TalAloni
Copy link

TalAloni commented Apr 8, 2020

Thanks, I've already opened issue #2376

@nohwnd
Copy link
Member

nohwnd commented Apr 9, 2020

duplicate of the bug mentioned ^^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants