7 references to SetResolution
System.Drawing.Common.Tests (7)
mono\System.Drawing\BitmapTests.cs (7)
1148
public void SetResolution_Zero() => Assert.Throws<ArgumentException>(() =>
SetResolution
(0.0f, 0.0f));
1151
public void SetResolution_Negative_X() => Assert.Throws<ArgumentException>(() =>
SetResolution
(-1.0f, 1.0f));
1154
public void SetResolution_Negative_Y() => Assert.Throws<ArgumentException>(() =>
SetResolution
(1.0f, -1.0f));
1157
public void SetResolution_MaxValue() =>
SetResolution
(float.MaxValue, float.MaxValue);
1160
public void SetResolution_PositiveInfinity() =>
SetResolution
(float.PositiveInfinity, float.PositiveInfinity);
1163
public void SetResolution_NaN() => Assert.Throws<ArgumentException>(() =>
SetResolution
(float.NaN, float.NaN));
1166
public void SetResolution_NegativeInfinity() => Assert.Throws<ArgumentException>(() =>
SetResolution
(float.NegativeInfinity, float.NegativeInfinity));