Imported Upstream version 5.20.0.180

Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-02-04 20:11:37 +00:00
parent 0e2d47d1c8
commit 0510252385
3360 changed files with 83827 additions and 39243 deletions

View File

@ -19,6 +19,8 @@ using DecoderException = System.Text.DecoderFallbackException;
using AssertType = NUnit.Framework.Assert;
using MonoTests.Helpers;
namespace MonoTests.System.Text
{
[TestFixture]
@ -1043,9 +1045,7 @@ namespace MonoTests.System.Text
[Category ("MobileNotWorking")]
public void Bug415628 ()
{
DirectoryInfo bcl_output_dir = Directory.GetParent (Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location)).Parent;
string namespace_dir = Path.Combine (bcl_output_dir.Parent.FullName, "corlib");
using (var f = File.Open (Path.Combine (namespace_dir, "Test/resources/415628.bin"), FileMode.Open)) {
using (var f = File.Open (TestResourceHelper.GetFullPathOfResource ("Test/resources/415628.bin"), FileMode.Open)) {
BinaryReader br = new BinaryReader (f);
byte [] buf = br.ReadBytes (8000);
Encoding.UTF8.GetString(buf);