Imported Upstream version 4.0.0~alpha1

Former-commit-id: 806294f5ded97629b74c85c09952f2a74fe182d9
This commit is contained in:
Jo Shields
2015-04-07 09:35:12 +01:00
parent 283343f570
commit 3c1f479b9d
22469 changed files with 2931443 additions and 869343 deletions

View File

@ -181,11 +181,7 @@ namespace MonoTests.System.Text
Encoding encoding = Encoding.ASCII;
byte [] bytes = new byte [] {0x61, 0xE1, 0xE2};
string s = encoding.GetString (bytes, 0, 3);
#if NET_2_0
Assert.AreEqual ("a??", s);
#else
Assert.AreEqual ("aab", s);
#endif
}
[Test] // Test Decoder
@ -257,7 +253,7 @@ namespace MonoTests.System.Text
var chars = new char[] { '9', '8', '7', '6', '5' };
var ret = enc.GetChars (bytes, 0, bytes.Length, chars, 0);
Assert.That (ret, Is.EqualTo (4), "ret"); // FIXME: Wrong it should be 2
Assert.That (ret, Is.EqualTo (2), "ret");
Assert.That (chars [0], Is.EqualTo ('0'), "chars[0]");
Assert.That (chars [1], Is.EqualTo ('1'), "chars[1]");
Assert.That (chars [2], Is.EqualTo ('7'), "chars[2]");