Skip to content

Commit b3cf490

Browse files
committed
Prevent tests from running under wasdk, workaround for missing MultiTarget/csproj support in CommunityToolkit/Tooling-Windows-Submodule#101
1 parent 5a1c279 commit b3cf490

11 files changed

+22
-0
lines changed

components/Notifications/tests/TestAssertHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
using CommunityToolkit.Notifications;
1111
using Microsoft.VisualStudio.TestTools.UnitTesting;
1212

13+
#if WINDOWS_UWP
14+
1315
#nullable disable
1416
namespace NotificationsExperiment.Tests
1517
{

components/Notifications/tests/TestMail.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using CommunityToolkit.Notifications;
66
using Microsoft.VisualStudio.TestTools.UnitTesting;
77

8+
#if WINDOWS_UWP
9+
810
#nullable disable
911
namespace NotificationsExperiment.Tests
1012
{

components/Notifications/tests/TestTileContentBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using CommunityToolkit.Notifications;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
88

9+
#if WINDOWS_UWP
10+
911
#nullable disable
1012
namespace NotificationsExperiment.Tests
1113
{

components/Notifications/tests/TestToastArguments.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
using CommunityToolkit.Notifications;
99
using Microsoft.VisualStudio.TestTools.UnitTesting;
1010

11+
#if WINDOWS_UWP
12+
1113
#nullable disable
1214
namespace NotificationsExperiment.Tests
1315
{

components/Notifications/tests/TestToastContentBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
using CommunityToolkit.Notifications;
88
using Microsoft.VisualStudio.TestTools.UnitTesting;
99

10+
#if WINDOWS_UWP
11+
1012
#nullable disable
1113
namespace NotificationsExperiment.Tests
1214
{

components/Notifications/tests/TestWeather.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using CommunityToolkit.Notifications;
66
using Microsoft.VisualStudio.TestTools.UnitTesting;
77

8+
#if WINDOWS_UWP
9+
810
#nullable disable
911
namespace NotificationsExperiment.Tests
1012
{

components/Notifications/tests/Test_Adaptive_Xml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using CommunityToolkit.Notifications;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
88

9+
#if WINDOWS_UWP
10+
911
#nullable disable
1012
namespace NotificationsExperiment.Tests
1113
{

components/Notifications/tests/Test_Badge_Xml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
using CommunityToolkit.Notifications;
66
using Microsoft.VisualStudio.TestTools.UnitTesting;
77

8+
#if WINDOWS_UWP
9+
810
#nullable disable
911
namespace NotificationsExperiment.Tests
1012
{

components/Notifications/tests/Test_Tile_Xml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using CommunityToolkit.Notifications;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
88

9+
#if WINDOWS_UWP
10+
911
#nullable disable
1012
namespace NotificationsExperiment.Tests
1113
{

components/Notifications/tests/Test_Toast_Xml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using CommunityToolkit.Notifications;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
88

9+
#if WINDOWS_UWP
10+
911
#nullable disable
1012
namespace NotificationsExperiment.Tests
1113
{

0 commit comments

Comments
 (0)