* PenTest.cs: Fix test case not to use a color that is "destroyed"
by another unit test. The nunit update changed the order in which
the test cases are executed.
svn path=/trunk/mcs/; revision=122341
* GDIPlusTest.cs: Add MeasureCharacterRanges test cases around bug
#449971 and add a few delta for FP comparison.
* TestGraphics.cs: Add a few delta for FP comparison.
svn path=/trunk/mcs/; revision=122060
* GraphicsPathTest.cs, LinearGradientBrushTest.cs, TestMatrix.cs:
Add delta when comparing floating point values since there can be
small differences between different platforms.
svn path=/trunk/mcs/; revision=122052
* TestGraphics.cs, GDIPlusTest.cs : fix tests wrt rounding that
were failing on .NET too (exposed by nunit24).
* LinearGradientBrushTest.cs, GraphicsPathTest.cs,
TestMatrix.cs : fix tests wrt rounding that were failing on .NET
too (exposed by nunit24).
svn path=/trunk/mcs/; revision=121182
resources, also clone the underlying stream, since it needs to stay
around for the life of the image (gdi doesn't clone the underlying
stream when cloning images, so when the gc disposes the original, it
will also dispose the stream, which invalidates the clone).
* System.Drawing/Bitmap.cs: Save the underlying stream when creating bitmaps from a
clone under win32
* System.Drawing.Imaging/Metafile.cs: Save the underlying stream when creating from a
clone under win32
[fixes#438886]
2008-11-21 Andreia Gaita <[email protected]>
svn path=/trunk/mcs/; revision=119580
* GraphicsPathIteratorTest.cs: New. Add some (incomplete) unit
tests for GraphicsPathIterator. Test cases are mostly to ensure
null check compatibility with MS.
* LinearGradientBrushTest.cs: Add test case when setting null
on properties.
* PathGradientBrushTest.cs: Add test case when setting null
on properties.
svn path=/trunk/mcs/; revision=117628
* GraphicsPathIterator.cs: Add proper null check that match the same
behavior that MS has.
* LinearGradientBrush.cs: Add comments to setter that dont do any null
check in order to be compatible with MS. Fix InterpolationColors to
throw a ArgumentNullException.
* PathGradientBrush.cs: Add comments to setter that dont do any null
check in order to be compatible with MS.
[Found using Gendarme CheckParametersNullityInVisibleMethodsRule]
svn path=/trunk/mcs/; revision=117627
* PrintingServicesUnix.cs: Fix potential crash on 64bit OS. Gendarme
rule for checking IntPtr has been updated to cover this case as well
svn path=/trunk/mcs/; revision=117611
* ColorPalette.cs, ImageFormat.cs: Remove unneeded field
initialization to their default values.
[Found using Gendarme AvoidUnneededFieldInitializationRule]
svn path=/trunk/mcs/; revision=115566
* TestColor.cs: Add test case, from Gert Driesen, for bug #410693
* TestRectangleF.cs: Add test case, from Imie Nazwisko, for bug #431587
svn path=/trunk/mcs/; revision=114972
* Color.cs: Fix Color serialization by changing 'value' visibility
to private and make everyone access it thru an internal property.
This also simplify the A, R, G and B properties and probably covers
a few other cases where a similar hack would have been required.
[Fix bug #410693]
* KnownColors.cs: Assign Color.Value property and not the value field.
svn path=/trunk/mcs/; revision=114971
* GraphicsPathTest.cs: Add a bunch of unit tests to check when
points can be compressed (removed) when adding shapes to a path.
svn path=/trunk/mcs/; revision=112123
* Makefile: Add 415581.ico.
* Icon.cs (InitFromStreamWithSize): Use temp ArrayList for IconDirEntry
to avoid empty slots in array. Use actual index of IconDirEntry in
array when entries have been skipped. Fixes bug #415581.
svn path=/trunk/mcs/; revision=110007
and imageData until after the number of entries was determined to
cope with skipping of 256x256 icons. Fixes bug #410608.
* Makefile: Add 323511.ico.
* TestIcon.cs: Add test case for bug #410608.
svn path=/trunk/mcs/; revision=109879
* FrameDimension.cs: Fix double-cast in Equals (found using Gendarme).
Then fixed a lot of other things while creating unit tests for it.
svn path=/trunk/mcs/; revision=109811
* TestRegion.cs: Add test case for #402613 to verify Exclude.
Based on Jan Krajicek's code supplied inside the bug report.
svn path=/trunk/mcs/; revision=106769
* SizeConverter.cs: Fallback to CultureInfo.CurrentCulture
if supplied culture is null.
* PointConverter.cs: Fallback to CultureInfo.CurrentCulture
if supplied culture is null.
* Add tests accordingly
svn path=/trunk/mcs/; revision=106717
* ImageAttributes.cs: Call CheckStatus in GetAdjustedPalette before
trying to set the palette (since the values could be bad).
[Partial fix for #402172]
svn path=/trunk/mcs/; revision=106499
10576 - Problem with GDI fonts.
10599 - Problem with Graphics.DrawString() with StringFormat
10600 - Problem with Graphics.DrawPath()
svn path=/trunk/mcs/; revision=105890
* CharacterRange.cs: Changed argument names to match MS.
* Color.cs: Changed argument names to match MS.
* Font.cs: Changed argument names to match MS.
* FontFamily.cs: Changed argument names to match MS.
* Graphics.cs: Changed argument names to match MS.
* Image.cs: Changed argument names to match MS.
* Icon.cs: Changed argument names to match MS.
* IconConverter.cs: Changed argument names to match MS.
* ImageAnimator.cs: Changed argument names to match MS.
* ImageConverter.cs: Changed argument names to match MS.
* ImageFormatConverter.cs: Changed argument names to match MS.
* Point.cs: Changed argument names to match MS.
* PointF.cs: Changed argument names to match MS.
* Rectangle.cs: Changed argument names to match MS.
* RectangleF.cs: Changed argument names to match MS.
* Region.cs: Changed argument names to match MS.
* Size.cs: Changed argument names to match MS.
* SizeF.cs: Changed argument names to match MS.
* StringFormat.cs: Changed argument names to match MS.
* SystemFonts.cs: Changed argument names to match MS.
* TextureBrush.cs: Changed argument names to match MS.
svn path=/trunk/mcs/; revision=104103