Fix failing xNodeBuilder tests (dotnet/corefx#35140)
authorStephen Toub <stoub@microsoft.com>
Thu, 7 Feb 2019 00:49:16 +0000 (19:49 -0500)
committerDan Moseley <danmose@microsoft.com>
Thu, 7 Feb 2019 00:49:16 +0000 (16:49 -0800)
commitc0d73998a72dd07e46f16cd3abe3677d8b6c3be1
tree35c9fedff2c6a8dfa1bcf9a6e852f97a41a5cf0e
parentcfde51cd808377f1bd45fb9fd24a39223a41293c
Fix failing xNodeBuilder tests (dotnet/corefx#35140)

1 of the tests is failing because float.MaxValue.ToString() changed and it had hardcoded the previous value.

4 of the tests failed because it was doing a string comparison on the type name of Encoding.UTF8, which a while ago changed to be a sealed derived type and thus is no longer exactly "System.Text.UTF8Encoding".  My only explanation for why these just started failing is that we weren't previously running them?  Might have something to do with the lack of a Configurations.props file, which I had to add in order to run the tests locally.

Commit migrated from https://github.com/dotnet/corefx/commit/a27099da194460992a9b8c098f1b5f07837577e0
src/libraries/System.Private.Xml.Linq/tests/xNodeBuilder/CommonTests.cs
src/libraries/System.Private.Xml.Linq/tests/xNodeBuilder/Configurations.props [new file with mode: 0644]
src/libraries/System.Private.Xml.Linq/tests/xNodeBuilder/WriterSettings.cs