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

@@ -47,7 +47,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -111,7 +111,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -231,7 +231,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -295,7 +295,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -361,7 +361,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -426,7 +426,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -492,7 +492,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -557,7 +557,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -623,7 +623,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#B2");
Assert.IsNull (ex.InnerException, "#B3");
Assert.IsNotNull (ex.Message, "#B4");
Assert.IsNull (ex.ParamName, "#B5");
Assert.IsNotNull (ex.ParamName, "#B5");
}
try {
@@ -868,7 +868,7 @@ namespace MonoTests.System
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
Assert.IsNull (ex.InnerException, "#3");
Assert.IsNotNull (ex.Message, "#4");
Assert.IsNull (ex.ParamName, "#5");
Assert.IsNotNull (ex.ParamName, "#5");
}
}

View File

@@ -156,7 +156,7 @@ namespace MonoTests.System
public void GetCommandLineArgs ()
{
string[] args = Environment.GetCommandLineArgs ();
#if !__WATCHOS__
#if !MONOTOUCH_WATCH
Assert.IsNotNull (args, "not null");
Assert.IsTrue (((args.Length > 0) && (args.Length < 256)), "reasonable");
Assert.IsNotNull (args [0], "application");

View File

@@ -499,7 +499,7 @@ namespace MonoTests.System
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, double.NegativeInfinity)), "#2");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, -2)), "#2");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, -1)), "#3");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, 0)), "#4");
Assert.IsFalse (double.IsNaN (Math.Pow ( double.NaN, 0)), "#4");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, 1)), "#5");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, 2)), "#6");
Assert.IsTrue (double.IsNaN (Math.Pow ( double.NaN, double.PositiveInfinity)), "#7");
@@ -507,7 +507,7 @@ namespace MonoTests.System
Assert.IsTrue (double.IsNaN (Math.Pow ( -2, double.NaN)), "#9");
Assert.IsTrue (double.IsNaN (Math.Pow ( -1, double.NaN)), "#10");
Assert.IsTrue (double.IsNaN (Math.Pow ( 0, double.NaN)), "#11");
Assert.IsTrue (double.IsNaN (Math.Pow ( 1, double.NaN)), "#12");
Assert.IsFalse (double.IsNaN (Math.Pow ( 1, double.NaN)), "#12");
Assert.IsTrue (double.IsNaN (Math.Pow ( 2, double.NaN)), "#13");
Assert.IsTrue (double.IsNaN (Math.Pow (double.PositiveInfinity, double.NaN)), "#14");
@@ -527,8 +527,8 @@ namespace MonoTests.System
Assert.IsTrue (double.IsNaN (Math.Pow (-1, 2.5)), "#19");
/* x = -1; y = NegativeInfinity or PositiveInfinity -> NaN */
Assert.IsTrue (double.IsNaN (Math.Pow (-1, double.PositiveInfinity)), "#20");
Assert.IsTrue (double.IsNaN (Math.Pow (-1, double.NegativeInfinity)), "#21");
Assert.IsFalse (double.IsNaN (Math.Pow (-1, double.PositiveInfinity)), "#20");
Assert.IsFalse (double.IsNaN (Math.Pow (-1, double.NegativeInfinity)), "#21");
/* -1 < x < 1; y = NegativeInfinity -> PositiveInfinity */
Assert.AreEqual (double.PositiveInfinity, Math.Pow (-0.5, double.NegativeInfinity), "#22");
@@ -856,11 +856,13 @@ namespace MonoTests.System
{
double a = 1.5D;
double b = 2.5D;
double c = 0.5000000000000001; // https://github.com/mono/mono/issues/9989
Assert.AreEqual (2D, Math.Round (a), "#1");
Assert.AreEqual (2D, Math.Round (b), "#2");
Assert.IsTrue (Double.MaxValue == Math.Round (Double.MaxValue), "#3");
Assert.IsTrue (Double.MinValue == Math.Round (Double.MinValue), "#4");
Assert.AreEqual (1D, Math.Round (c), "#3");
Assert.IsTrue (Double.MaxValue == Math.Round (Double.MaxValue), "#4");
Assert.IsTrue (Double.MinValue == Math.Round (Double.MinValue), "#5");
}
[Test]

View File

@@ -1 +1 @@
80fe02b425454e3f5205fb0e48c932f6fbe95c5e
798ab98b275858de38ea9093f694ac55c9a86318