X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FTest%2FSystem.Text%2FUTF8EncodingTest.cs;h=12de999dc5b6372937898c66fdfa1c8d7805b088;hb=HEAD;hp=82aab2be0613795941937c7499286cc7e067d308;hpb=0b4bc83e79ca3057693089dc7f926004bb9d9592;p=mono.git diff --git a/mcs/class/corlib/Test/System.Text/UTF8EncodingTest.cs b/mcs/class/corlib/Test/System.Text/UTF8EncodingTest.cs index 82aab2be061..12de999dc5b 100644 --- a/mcs/class/corlib/Test/System.Text/UTF8EncodingTest.cs +++ b/mcs/class/corlib/Test/System.Text/UTF8EncodingTest.cs @@ -11,6 +11,7 @@ using NUnit.Framework; using System; +using System.Reflection; using System.IO; using System.Text; @@ -175,7 +176,14 @@ namespace MonoTests.System.Text Assert.AreEqual (0x32, (int) s [5], "#B7"); } - // UTF8 decoding tests from http://www.cl.cam.ac.uk/~mgk25/ + // + // UTF8 decoding tests are based on the test file from http://www.cl.cam.ac.uk/~mgk25/ + // The test file is: https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-test.txt + // which is licensed under CC-by-4.0: https://creativecommons.org/licenses/by/4.0/ + // + // The file is not copied verbatim, instead individual + // tests are based on individual portions of that file + // [Test] public void T1_Correct_GreekWord_kosme () @@ -1035,7 +1043,7 @@ namespace MonoTests.System.Text [Category ("MobileNotWorking")] public void Bug415628 () { - using (var f = File.Open ("Test/resources/415628.bin", FileMode.Open)) { + using (var f = File.Open (Path.Combine (Path.GetDirectoryName (Assembly.GetExecutingAssembly ().Location), "Test/resources/415628.bin"), FileMode.Open)) { BinaryReader br = new BinaryReader (f); byte [] buf = br.ReadBytes (8000); Encoding.UTF8.GetString(buf);