Skip to content

Commit

Permalink
Run wallpaper sink tests on Windows only
Browse files Browse the repository at this point in the history
The wallpaper sink is currently only supported on Windows, therefore it doesn't make sense to execute its testsuite on other platforms
  • Loading branch information
w-enterprises committed Nov 29, 2021
1 parent 2405c95 commit ea51dc6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
5 changes: 4 additions & 1 deletion AllMyLights.Test/Connectors/WallpaperSinkTest.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#if Windows
using System.Collections.Generic;
using System.IO;
using AllMyLights.Connectors.Sinks.Wallpaper;
Expand Down Expand Up @@ -80,6 +81,7 @@ public void Should_prepend_configured_directory_to_relative_paths()
desktopMock.Verify(it => it.SetBackground(expected));
}


[Test]
public void Should_prepend_configured_directory_to_relative_paths_for_each_display()
{
Expand All @@ -101,4 +103,5 @@ public void Should_prepend_configured_directory_to_relative_paths_for_each_displ
desktopMock.Verify();
}
}
}
}
#endif
2 changes: 0 additions & 2 deletions AllMyLights/Platforms/Windows/IDesktopWallpaper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Text;

namespace AllMyLights.Platforms.Windows
{
Expand Down
7 changes: 1 addition & 6 deletions AllMyLights/Platforms/Windows/WindowsDesktop.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
using AllMyLights.Extensions;
using System;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace AllMyLights.Platforms.Windows
{
Expand Down

0 comments on commit ea51dc6

Please sign in to comment.