From b3cf49070b1917059b35112964102d9a91e9599e Mon Sep 17 00:00:00 2001 From: Arlo Godfrey Date: Wed, 30 Oct 2024 15:03:18 -0500 Subject: [PATCH] Prevent tests from running under wasdk, workaround for missing MultiTarget/csproj support in https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/101 --- components/Notifications/tests/TestAssertHelper.cs | 2 ++ components/Notifications/tests/TestMail.cs | 2 ++ components/Notifications/tests/TestTileContentBuilder.cs | 2 ++ components/Notifications/tests/TestToastArguments.cs | 2 ++ components/Notifications/tests/TestToastContentBuilder.cs | 2 ++ components/Notifications/tests/TestWeather.cs | 2 ++ components/Notifications/tests/Test_Adaptive_Xml.cs | 2 ++ components/Notifications/tests/Test_Badge_Xml.cs | 2 ++ components/Notifications/tests/Test_Tile_Xml.cs | 2 ++ components/Notifications/tests/Test_Toast_Xml.cs | 2 ++ components/Notifications/tests/TextXboxModern.cs | 2 ++ 11 files changed, 22 insertions(+) diff --git a/components/Notifications/tests/TestAssertHelper.cs b/components/Notifications/tests/TestAssertHelper.cs index 7977768c7..38cd7bc51 100644 --- a/components/Notifications/tests/TestAssertHelper.cs +++ b/components/Notifications/tests/TestAssertHelper.cs @@ -10,6 +10,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TestMail.cs b/components/Notifications/tests/TestMail.cs index 5a56fb751..54fa9502c 100644 --- a/components/Notifications/tests/TestMail.cs +++ b/components/Notifications/tests/TestMail.cs @@ -5,6 +5,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TestTileContentBuilder.cs b/components/Notifications/tests/TestTileContentBuilder.cs index 179b626cb..a4290f7aa 100644 --- a/components/Notifications/tests/TestTileContentBuilder.cs +++ b/components/Notifications/tests/TestTileContentBuilder.cs @@ -6,6 +6,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TestToastArguments.cs b/components/Notifications/tests/TestToastArguments.cs index 4a52aa01e..8baa44c1f 100644 --- a/components/Notifications/tests/TestToastArguments.cs +++ b/components/Notifications/tests/TestToastArguments.cs @@ -8,6 +8,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TestToastContentBuilder.cs b/components/Notifications/tests/TestToastContentBuilder.cs index b786c65ee..2685cc4b4 100644 --- a/components/Notifications/tests/TestToastContentBuilder.cs +++ b/components/Notifications/tests/TestToastContentBuilder.cs @@ -7,6 +7,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TestWeather.cs b/components/Notifications/tests/TestWeather.cs index 2ae75f69e..6757595c4 100644 --- a/components/Notifications/tests/TestWeather.cs +++ b/components/Notifications/tests/TestWeather.cs @@ -5,6 +5,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/Test_Adaptive_Xml.cs b/components/Notifications/tests/Test_Adaptive_Xml.cs index ff0447af6..c6403c650 100644 --- a/components/Notifications/tests/Test_Adaptive_Xml.cs +++ b/components/Notifications/tests/Test_Adaptive_Xml.cs @@ -6,6 +6,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/Test_Badge_Xml.cs b/components/Notifications/tests/Test_Badge_Xml.cs index 8dcab5e50..33d8a4794 100644 --- a/components/Notifications/tests/Test_Badge_Xml.cs +++ b/components/Notifications/tests/Test_Badge_Xml.cs @@ -5,6 +5,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/Test_Tile_Xml.cs b/components/Notifications/tests/Test_Tile_Xml.cs index 745248c16..d0193526e 100644 --- a/components/Notifications/tests/Test_Tile_Xml.cs +++ b/components/Notifications/tests/Test_Tile_Xml.cs @@ -6,6 +6,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/Test_Toast_Xml.cs b/components/Notifications/tests/Test_Toast_Xml.cs index 328771307..124f92b5e 100644 --- a/components/Notifications/tests/Test_Toast_Xml.cs +++ b/components/Notifications/tests/Test_Toast_Xml.cs @@ -6,6 +6,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests { diff --git a/components/Notifications/tests/TextXboxModern.cs b/components/Notifications/tests/TextXboxModern.cs index e98a1220b..3334d2030 100644 --- a/components/Notifications/tests/TextXboxModern.cs +++ b/components/Notifications/tests/TextXboxModern.cs @@ -5,6 +5,8 @@ using CommunityToolkit.Notifications; using Microsoft.VisualStudio.TestTools.UnitTesting; +#if WINDOWS_UWP + #nullable disable namespace NotificationsExperiment.Tests {