Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
StephaneDelcroix committed Sep 21, 2023
1 parent 8ad3252 commit 14e1701
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Controls/tests/Xaml.UnitTests/NameScopeTests.cs
@@ -1,5 +1,7 @@
using Microsoft.Maui.Controls.Core.UnitTests;
using Microsoft.Maui.UnitTests;
using NUnit.Framework;
using Microsoft.Maui.Dispatching;

namespace Microsoft.Maui.Controls.Xaml.UnitTests
{
Expand Down Expand Up @@ -47,6 +49,8 @@ public void NameScopeAreSharedWithChildren()
[Test]
public void DataTemplateChildrenDoesNotParticipateToParentNameScope()
{
DispatcherProvider.SetCurrent(new DispatcherProviderStub());

var xaml = @"
<ListView
xmlns=""http://schemas.microsoft.com/dotnet/2021/maui""
Expand All @@ -69,6 +73,8 @@ public void DataTemplateChildrenDoesNotParticipateToParentNameScope()
[Test]
public void ElementsCreatedFromDataTemplateHaveTheirOwnNameScope()
{
DispatcherProvider.SetCurrent(new DispatcherProviderStub());

var xaml = @"
<ListView
xmlns=""http://schemas.microsoft.com/dotnet/2021/maui""
Expand Down

0 comments on commit 14e1701

Please sign in to comment.