Adding unit test to provoke exception using Sch_WhiteSpaceRestriction…#35013
Merged
buyaa-n merged 10 commits intodotnet:masterfrom May 11, 2020
mrj001:Issue30218b
Merged
Adding unit test to provoke exception using Sch_WhiteSpaceRestriction…#35013buyaa-n merged 10 commits intodotnet:masterfrom mrj001:Issue30218b
buyaa-n merged 10 commits intodotnet:masterfrom
mrj001:Issue30218b
Conversation
|
Tagging subscribers to this area: @buyaa-n |
Contributor
Author
|
@buyaa-n |
Contributor
That happens 😄, glad that you found it, thank you for your continuous effort. seems now you need to fix the tests and resolve conflict |
…1 as its message.
…h_WhiteSpaceRestriction2.
…AttributeRestrictionInvalidFromWildcard to be thrown. These cover the throw statement which is not previously covered by unit tests.
Contributor
Author
Contributor
Member
|
Thanks @mrj001! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@buyaa-n
Per your suggestion in PR#33890, I'm using a second pull request.
This contains my attempt to provoke the exception using Sch_WhiteSpaceRestriction1 as its message. However, it is provoking a different exception:

I suspect this is a bug, as the XSD I'm trying to compile differs from the example in Paragraph 4.3.6 only in the name of the type and the presence of the namespace qualifier. (I'm pretty sure I've got the correct version of the spec now. :-))
The active test case is attempting to determine what was going wrong. The commented out test case is the one to actually try to provoked the exception.
Fixes #30218: