Skip to content

Commit ea51dc6

Browse files
committed
Run wallpaper sink tests on Windows only
The wallpaper sink is currently only supported on Windows, therefore it doesn't make sense to execute its testsuite on other platforms
1 parent 2405c95 commit ea51dc6

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

AllMyLights.Test/Connectors/WallpaperSinkTest.cs

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#if Windows
12
using System.Collections.Generic;
23
using System.IO;
34
using AllMyLights.Connectors.Sinks.Wallpaper;
@@ -80,6 +81,7 @@ public void Should_prepend_configured_directory_to_relative_paths()
8081
desktopMock.Verify(it => it.SetBackground(expected));
8182
}
8283

84+
8385
[Test]
8486
public void Should_prepend_configured_directory_to_relative_paths_for_each_display()
8587
{
@@ -101,4 +103,5 @@ public void Should_prepend_configured_directory_to_relative_paths_for_each_displ
101103
desktopMock.Verify();
102104
}
103105
}
104-
}
106+
}
107+
#endif

AllMyLights/Platforms/Windows/IDesktopWallpaper.cs

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.Runtime.InteropServices;
4-
using System.Text;
53

64
namespace AllMyLights.Platforms.Windows
75
{

AllMyLights/Platforms/Windows/WindowsDesktop.cs

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
using AllMyLights.Extensions;
2-
using System;
1+
using System;
32
using System.Collections.Generic;
4-
using System.Drawing;
5-
using System.Drawing.Imaging;
6-
using System.IO;
73
using System.Linq;
84
using System.Runtime.InteropServices;
9-
using System.Windows.Forms;
105

116
namespace AllMyLights.Platforms.Windows
127
{

0 commit comments

Comments
 (0)