Skip to content

Commit

Permalink
Prevent tests from running under wasdk, workaround for missing MultiT…
Browse files Browse the repository at this point in the history
  • Loading branch information
Arlodotexe committed Oct 31, 2024
1 parent 5a1c279 commit dae165d
Show file tree
Hide file tree
Showing 11 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestAssertHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using System.Collections.Generic;
using System.IO;
Expand Down Expand Up @@ -449,3 +451,4 @@ private static void ParseXml(XmlReader reader, MyXmlElement intoElement)
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestMail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down Expand Up @@ -166,3 +168,4 @@ private static AdaptiveGroup GenerateMessage(string from, string subject, string
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestTileContentBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System.Linq;
using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down Expand Up @@ -110,3 +112,4 @@ private static AdaptiveText GetTileAdaptiveText(TileContentBuilder builder, Tile
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestToastArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -497,3 +499,4 @@ private static bool IsSame(ToastArguments expected, ToastArguments actual)
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestToastContentBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using System.Linq;
using CommunityToolkit.Notifications;
Expand Down Expand Up @@ -1196,3 +1198,4 @@ public void AddComboBoxTest_WithMultipleChoiceAndDefaultSelectedAndTitle_ReturnS
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TestWeather.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down Expand Up @@ -290,3 +292,4 @@ private static AdaptiveSubgroup GenerateLargeSubgroup(string day, string image,
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/Test_Adaptive_Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down Expand Up @@ -595,3 +597,4 @@ private static void AssertAdaptiveChildInTile(string expectedAdaptiveChildXml, I
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/Test_Badge_Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down Expand Up @@ -72,3 +74,4 @@ private static void AssertPayload(string expectedXml, INotificationContent notif
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/Test_Tile_Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down Expand Up @@ -1674,3 +1676,4 @@ private static void AssertPayload(string expectedXml, TileContent tile)
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/Test_Toast_Xml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using System;
using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;
Expand Down Expand Up @@ -2190,3 +2192,4 @@ private static void AssertPayload(string expectedXml, ToastContent toast)
}
}
}
#endif
3 changes: 3 additions & 0 deletions components/Notifications/tests/TextXboxModern.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

#if WINDOWS_UWP

using CommunityToolkit.Notifications;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down Expand Up @@ -161,3 +163,4 @@ public void TestXboxModernTile()
}
}
}
#endif

0 comments on commit dae165d

Please sign in to comment.