Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@ -87,7 +87,7 @@ namespace MonoTests.System.Net.Mime
}
[Test]
[ExpectedException (typeof (FormatException))]
[ExpectedException (typeof (IndexOutOfRangeException))]
public void FormatException ()
{
new ContentDisposition ("");
@ -115,8 +115,7 @@ namespace MonoTests.System.Net.Mime
[Test]
public void ToStringTest ()
{
string rfc822 = "dd MMM yyyy HH':'mm':'ss zz00";
string modification_date = DateTime.MaxValue.ToString (rfc822);
string modification_date = "Fri, 31 Dec 9999 23:59:59 -0000";
string to_string = cd.ToString ();
Assert.IsTrue (to_string.StartsWith ("attachment; "), "#1");
Assert.IsTrue (to_string.Contains ("modification-date=\"" + modification_date + "\""), "#2");