Skip to content

Commit

Permalink
chore: fix Xunit warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Feb 25, 2024
1 parent 2338a75 commit 637e6a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Prism.Core.Tests/Events/PubSubEventFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public void SubscribeDefaultsToPublisherThread()
Action<string> action = delegate { };
var token = PubSubEvent.Subscribe(action, true);

Assert.Equal(1, PubSubEvent.BaseSubscriptions.Count);
Assert.Single(PubSubEvent.BaseSubscriptions);
Assert.Equal(typeof(EventSubscription<string>), PubSubEvent.BaseSubscriptions.ElementAt(0).GetType());
}

Expand All @@ -586,7 +586,7 @@ public void SubscribeDefaultsToPublisherThreadNonGeneric()
Action action = delegate { };
var token = pubSubEvent.Subscribe(action, true);

Assert.Equal(1, pubSubEvent.BaseSubscriptions.Count);
Assert.Single(pubSubEvent.BaseSubscriptions);
Assert.Equal(typeof(EventSubscription), pubSubEvent.BaseSubscriptions.ElementAt(0).GetType());
}

Expand Down

0 comments on commit 637e6a9

Please sign in to comment.