Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove erroneous curlies in Xml resource (#33890)
* Added test for Issue 30218, use of resource Sch_MinLengthGtBaseMinLength * Reworded error message to remove the invalid formatters. Issue #30218 * Updated check of message from the exception to be more amenable to potential internationalization. * Reworded resource Sch_MaxLengthGtBaseMaxLength and added unit test for same. * Simplified test code per feedback from Dan Moseley, PR#33890. * Tests to increase code coverage. The ones that are failing trigger resource string Sch_MaxMinLengthBaseLength to be used as the Exception message. * Removed invalid formatters from the resource string Sch_MaxMinLengthBaseLength. Failing tests from the previous commit now pass. * Added test for the Exception using string resource Sch_LengthGtBaseLength as its message. This covers a source line and branch not previously covered. This test fails due to the invalid formatters. * Reworded string resource Sch_LengthGtBaseLength to remove the invalid formatters. * Added unit tests for uses of string resource Sch_FacetBaseFixed. * Made test for the message containing "fixed" more specific. * Reworded string resource Sch_FacetBaseFixed to remove the invalid formatter. * Added unit test to cover usage of string resource Sch_InvalidAllMax. A second usage of this string resource is not covered as it is in a class marked Obsolete. * Reworded string resource Sch_InvalidAllMax to remove the invalid formatter. * Added unit test for String Resource Sch_InvalidAllElementMax - invalid formatter. * Reworded string resource Sch_InvalidAllElementMax to remove the invalid formatter. * Added unit test which causes an XmlSchemaException using string resource Sch_InvalidExemplar as its message. * Reworded Sch_InvalidExemplar to remove the invalid formatter. Also, added the name of the element which cannot be used as the substitution group affiliation. * Added unit test that causes an XmlSchemaException to be thrown using string resource Sch_GroupBaseRestNotEmptiable as its message. * Removed the curly braces so there are no longer any invalid formatters. * Added unit tests that cause an XmlSchemaException to be thrown using string resource Sch_AllRefMinMax as its message. * Changed string resource Sch_AllRefMinMax to remove the invalid formatters. * reworded Sch_MinLengthGtBaseMinLength and Sch_MaxLengthGtBaseMaxLength similarly to Sch_LengthGtBaseLength * Corrected error "greater than" to "less than". * Changed name of test to more accurately reflect its purpose. * Changed casing of MinLength and MaxLength to match their XML facets. Removed redundant ToLower call and comment. * Removed all Regex used to find invalid formatters. * renamed MaxMinLengthBaseLength_TestData to indicate that this is testing the successful case. * Removed suppression of exception so that we will see the exception if one is thrown. * Removed comments as there are issues tracking these. * Fixed comment larger -> lower. * Removed XML comments on test methods. * Removal of XML comment that was missed.
- Loading branch information