You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@@ -27,6 +27,8 @@
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
|
||||
#if MONO_FEATURE_CAS
|
||||
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
using System.Drawing.Printing;
|
||||
@@ -132,3 +134,5 @@ namespace MonoTests.System.Drawing.Printing {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -25,6 +25,7 @@
|
||||
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
//
|
||||
#if MONO_FEATURE_CAS
|
||||
|
||||
using NUnit.Framework;
|
||||
using System;
|
||||
@@ -466,3 +467,4 @@ namespace MonoTests.System.Drawing.Printing {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -104,6 +104,7 @@ namespace MonoTests.System.Drawing.Printing {
|
||||
|
||||
[Test]
|
||||
[Platform (Exclude = "Win", Reason = "Depends on CUPS which is usually not installed on Windows")]
|
||||
[Ignore]
|
||||
public void Bug602934_PrinterSettingsReturnActualValues ()
|
||||
{
|
||||
if (PrinterSettings.InstalledPrinters.Count < 1)
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace MonoTests.System.Drawing {
|
||||
[Test]
|
||||
public void ConvertFrom_x4 ()
|
||||
{
|
||||
Assert.Throws<Exception> (() => colconv.ConvertFrom (null, CultureInfo.InvariantCulture,
|
||||
Assert.Throws<ArgumentException> (() => colconv.ConvertFrom (null, CultureInfo.InvariantCulture,
|
||||
"*1, 1"));
|
||||
}
|
||||
|
||||
|
||||
@@ -236,7 +236,6 @@ namespace MonoTests.System.Drawing {
|
||||
|
||||
Rectangle rect = new Rectangle (2, 2, 5, 5);
|
||||
Assert.AreEqual (Status.Ok, GDIPlus.GdipBitmapLockBits (bmp, ref rect, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, bd), "locked");
|
||||
Assert.AreEqual (Status.Win32Error, GDIPlus.GdipBitmapLockBits (bmp, ref rect, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, bd), "second lock");
|
||||
|
||||
Assert.AreEqual (rect.Width, bd.Width, "Width");
|
||||
Assert.AreEqual (rect.Height, bd.Height, "Height");
|
||||
|
||||
@@ -125,7 +125,7 @@ namespace MonoTests.System.Drawing
|
||||
ptconv.ConvertFrom (null, CultureInfo.InvariantCulture, "*1, 1");
|
||||
Assert.Fail ("CF#5-1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "CF#5-2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "CF#5-2");
|
||||
Assert.IsNotNull (ex.InnerException, "CF#5-3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "CF#5-4");
|
||||
}
|
||||
@@ -315,7 +315,7 @@ namespace MonoTests.System.Drawing
|
||||
ptconv.ConvertFromInvariantString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
@@ -350,7 +350,7 @@ namespace MonoTests.System.Drawing
|
||||
ptconv.ConvertFromString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace MonoTests.System.Drawing
|
||||
"*1, 1, 1, 1");
|
||||
Assert.Fail ("CF#5: must throw Exception");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "CF#5-2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "CF#5-2");
|
||||
Assert.IsNotNull (ex.InnerException, "CF#5-3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "CF#5-4");
|
||||
}
|
||||
@@ -384,7 +384,7 @@ namespace MonoTests.System.Drawing
|
||||
rconv.ConvertFromInvariantString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
@@ -421,7 +421,7 @@ namespace MonoTests.System.Drawing
|
||||
rconv.ConvertFromString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ namespace MonoTests.System.Drawing
|
||||
"*1, 1");
|
||||
Assert.Fail ("CF#5-1: must throw Exception");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "CF#5-2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "CF#5-2");
|
||||
Assert.IsNotNull (ex.InnerException, "CF#5-3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "CF#5-4");
|
||||
}
|
||||
@@ -320,7 +320,7 @@ namespace MonoTests.System.Drawing
|
||||
szconv.ConvertFromInvariantString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
@@ -357,7 +357,7 @@ namespace MonoTests.System.Drawing
|
||||
szconv.ConvertFromString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
|
||||
@@ -129,7 +129,7 @@ namespace MonoTests.System.Drawing
|
||||
"*1, 1");
|
||||
Assert.Fail ("CF#5-1: must throw Exception");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "CF#5-2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "CF#5-2");
|
||||
Assert.IsNotNull (ex.InnerException, "CF#5-3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "CF#5-4");
|
||||
}
|
||||
@@ -323,7 +323,7 @@ namespace MonoTests.System.Drawing
|
||||
szconv.ConvertFromInvariantString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
@@ -360,7 +360,7 @@ namespace MonoTests.System.Drawing
|
||||
szconv.ConvertFromString ("hello");
|
||||
Assert.Fail ("#1");
|
||||
} catch (Exception ex) {
|
||||
Assert.AreEqual (typeof (Exception), ex.GetType (), "#2");
|
||||
Assert.AreEqual (typeof (ArgumentException), ex.GetType (), "#2");
|
||||
Assert.IsNotNull (ex.InnerException, "#3");
|
||||
Assert.AreEqual (typeof (FormatException), ex.InnerException.GetType (), "#3");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user