Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Adding System.Drawing.Common.Imaging Metafile tests. (#20711) #22753

Merged
merged 4 commits into from Jul 31, 2017

Conversation

KostaVlev
Copy link

Adding System.Drawing.Common.Imaging.Metafile tests. (#20711)

…PlatformDetection.IsNotWindowsNanoServer))] to [ConditionalTheory(Helpers.GdiplusIsAvailable)]
…nalFact(Helpers.IsNotLinuxAndGdiplusIsAvailable)]
Copy link
Contributor

@mellinoe mellinoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test additions look good, but we should change how they are skipped on Unix.

@@ -12,6 +12,7 @@ namespace System.Drawing
public static class Helpers
{
public const string GdiplusIsAvailable = nameof(Helpers) + "." + nameof(GetGdiplusIsAvailable);
public const string IsNotLinuxAndGdiplusIsAvailable = nameof(Helpers) + "." + nameof(CheckIsNotLinuxAndGdiplusIsAvailable);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding this, you should just annotate the failing tests with [ActiveIssue(20884, TestPlatforms.AnyUnix)] like the others.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is done!

@mellinoe mellinoe merged commit 9b13e7f into dotnet:master Jul 31, 2017
@mellinoe
Copy link
Contributor

Thanks @KostaVlev

@karelz karelz modified the milestone: 2.1.0 Aug 14, 2017
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…0711) (dotnet/corefx#22753)

* Adding System.Drawing.Common.Imaging Metafile tests. (dotnet/corefx#20711)

* Changing [ConditionalTheory(nameof(PlatformDetection) + "." + nameof(PlatformDetection.IsNotWindowsNanoServer))] to [ConditionalTheory(Helpers.GdiplusIsAvailable)]

* Changing [ConditionalTheory(Helpers.GdiplusIsAvailable)] to [ConditionalFact(Helpers.IsNotLinuxAndGdiplusIsAvailable)]

* Changing the way tests will skip Unix.


Commit migrated from dotnet/corefx@9b13e7f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
4 participants