Previously, many tests just had a return statement when the test shouldn't
be executed (e.g. Unix-only). This made it look like the test was successful
when in fact it wasn't executed at all.
Assert.Ignore() is now used instead to correctly exclude those tests.
On systems where 'Liberation Sans' is not installed out-of-the-box
(e.g. Ubuntu Server, OpenSuse Server) it falls back to 'DejaVu Sans',
which makes the GetHashCode_NameDiffers_HashesNotEqual() test fail as
the two font names are now equal. Instead we use 'Arial' and 'Courier New'
which resolve to different fonts on most systems.
Changes licensed under MIT/X11.
As reported in Bug1202, Graphics.DrawLine was drawing a line when one of the
x/y parameters was NotANumber. This differred from Microsoft.NET Behavior.
This patch brings it back in line by adding the checks.
This includes an extended unit test which now fails without this patch and
passes with it.
https://bugzilla.xamarin.com/show_bug.cgi?id=1202
No additional System.Drawing unit tests fail with this patch than without
it, presuming this patch is applied.
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
This set of .gitattributes was automatically generated from the list of files
that GIT tried to normalize when I enabled automatic EOL conversion.
With this set of attributes, we prevent automated EOL conversion on files that
we know will cause trouble down the road.
* KnownColors.cs: FindColorMatch has to match only predefined color
names ignoring system elements.
* ColorTranslator.cs: Add more predefined names.
svn path=/trunk/mcs/; revision=144019
* 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
* 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
* 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
* 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