Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ namespace NumSharp.UnitTest
[TestClass]
public class BitmapExtensionsTests : TestClass
{
[ClassInitialize]
public static void RequireWindows(TestContext _)
{
if (!OperatingSystem.IsWindows())
Assert.Inconclusive("System.Drawing.Common requires Windows (GDI+).");
}

// ================================================================
// Bugs discovered during test coverage expansion:
//
Expand Down
10 changes: 9 additions & 1 deletion test/NumSharp.UnitTest/NumSharp.Bitmap/BitmapWithAlphaTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Drawing.Imaging;
using System;
using System.Drawing.Imaging;
using System.Resources;
using FluentAssertions;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand All @@ -9,6 +10,13 @@ namespace NumSharp.UnitTest
[TestClass]
public class BitmapWithAlphaTests : TestClass
{
[ClassInitialize]
public static void RequireWindows(TestContext _)
{
if (!OperatingSystem.IsWindows())
Assert.Inconclusive("System.Drawing.Common requires Windows (GDI+).");
}

[TestMethod]
public void ToNDArray_Case1()
{
Expand Down
7 changes: 7 additions & 0 deletions test/NumSharp.UnitTest/OpenBugs.Bitmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ namespace NumSharp.UnitTest
[TestClass]
public class OpenBugsBitmap : TestClass
{
[ClassInitialize]
public static void RequireWindows(TestContext _)
{
if (!OperatingSystem.IsWindows())
Assert.Inconclusive("System.Drawing.Common requires Windows (GDI+).");
}

// ================================================================
//
// BUG 1: ToNDArray(copy:true) on odd-width 24bpp images produces
Expand Down
Loading