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

Desktop: Tests under "System.ComponentModel.DataAnnotations.Tests" failed with "Xunit.Sdk.ThrowsException" #21009

Closed
KristinXie1 opened this issue Apr 10, 2017 · 2 comments · Fixed by dotnet/corefx#17874
Labels
area-System.ComponentModel.DataAnnotations test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Milestone

Comments

@KristinXie1
Copy link

Failed tests:
System.ComponentModel.DataAnnotations.Tests.CustomValidationAttributeTests.RequiresValidationContext_BadlyFormed_ThrowsInvalidOperationException
System.ComponentModel.DataAnnotations.Tests.DataTypeAttributeTests.Ctor_String

Detail: https://ci.dot.net/job/dotnet_corefx/job/master/job/outerloop_netfx_windows_nt_debug/13/testReport/System.ComponentModel.DataAnnotations.Tests/CustomValidationAttributeTests/RequiresValidationContext_BadlyFormed_ThrowsInvalidOperationException_validatorType__null__method____Does_not_matter___/

MESSAGE:
Assert.Throws() Failure\r\nExpected: typeof(System.InvalidOperationException)\r\nActual: (No exception was thrown)
+++++++++++++++++++
STACK TRACE:
at System.ComponentModel.DataAnnotations.Tests.CustomValidationAttributeTests.RequiresValidationContext_BadlyFormed_ThrowsInvalidOperationException(Type validatorType, String method) in D:\j\workspace\outerloop_net---903ddde6\src\System.ComponentModel.Annotations\tests\CustomValidationAttributeTests.cs:line 103
@safern
Copy link
Member

safern commented Apr 11, 2017

This is taken care of PR: dotnet/corefx#17874

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 2.0.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.ComponentModel.DataAnnotations test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants