Skip to content

Commit 7083fa5

Browse files
Bump xunit from 2.4.2 to 2.5.0 (#3265)
* Bump xunit from 2.4.2 to 2.5.0 Bumps [xunit](https://github.com/xunit/xunit) from 2.4.2 to 2.5.0. - [Commits](xunit/xunit@2.4.2...2.5.0) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fixing warnings from new analyzers --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kevin Bost <[email protected]>
1 parent 8095a8f commit 7083fa5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Directory.packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<PackageVersion Include="ShowMeTheXAML.MSBuild" Version="2.0.0" />
2424
<PackageVersion Include="VirtualizingWrapPanel" Version="1.5.7" />
2525
<PackageVersion Include="XAMLTest" Version="1.0.0-ci417" />
26-
<PackageVersion Include="xunit" Version="2.4.2" />
26+
<PackageVersion Include="xunit" Version="2.5.0" />
2727
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.0" />
2828
<PackageVersion Include="Xunit.StaFact" Version="1.1.11" />
2929
</ItemGroup>

MaterialDesignThemes.UITests/WPF/DrawerHosts/DrawerHostTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public async Task DrawerHost_OpenAndClose_RaisesEvents()
4343
await Wait.For(async () =>
4444
{
4545
var invocations = await openedEvent.GetInvocations();
46-
Assert.Equal(1, invocations.Count);
46+
Assert.Single(invocations);
4747
});
4848

4949
await Wait.For(async () =>
@@ -61,7 +61,7 @@ await Wait.For(async () =>
6161
await Wait.For(async () =>
6262
{
6363
var invocations = await closingEvent.GetInvocations();
64-
Assert.Equal(1, invocations.Count);
64+
Assert.Single(invocations);
6565
});
6666

6767
await showButton.LeftClick();
@@ -169,7 +169,7 @@ public async Task DrawerHost_ShouldInvokeCustomContentTemplateSelector_WhenSetEx
169169
}
170170
catch
171171
{
172-
throw new FailException($"Failed to find 'TextBlock' content in '{drawerElementKey}'. ContentTemplateSelector not properly applied.");
172+
throw FailException.ForFailure($"Failed to find 'TextBlock' content in '{drawerElementKey}'. ContentTemplateSelector not properly applied.");
173173
}
174174
}
175175

MaterialDesignThemes.Wpf.Tests/SnackbarMessageQueueTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void GetSnackbarMessageNullValues()
2727
}
2828

2929
[StaFact]
30-
[Description("Ensures that GetSnackbaMessage behaves correctly if the queue should discard duplicate items")]
30+
[Description("Ensures that GetSnackbarMessage behaves correctly if the queue should discard duplicate items")]
3131
public void GetSnackbarMessageDiscardDuplicatesQueue()
3232
{
3333
_snackbarMessageQueue.DiscardDuplicates = true;
@@ -51,7 +51,7 @@ public void GetSnackbarMessageDiscardDuplicatesQueue()
5151
}
5252

5353
[StaTheory]
54-
[Description("Ensures that GetSnackbaMessage behaves correctly if the queue simply outputs items")]
54+
[Description("Ensures that GetSnackbarMessage behaves correctly if the queue simply outputs items")]
5555
[InlineData("String & Action content", "Action content")]
5656
[InlineData("Different String & Action content", "Action content")]
5757
[InlineData("", "")]
@@ -63,7 +63,7 @@ public void GetSnackbarMessageSimpleQueue(object content, object actionContent)
6363

6464
IReadOnlyList<SnackbarMessageQueueItem> messages = _snackbarMessageQueue.QueuedMessages;
6565

66-
Assert.Equal(1, messages.Count);
66+
Assert.Single(messages);
6767

6868
Assert.Equal(content, messages[0].Content);
6969
Assert.Equal(actionContent, messages[0].ActionContent);
@@ -76,7 +76,7 @@ public void Enqueue_ProperlySetsPromote()
7676
_snackbarMessageQueue.Enqueue("Content", "Action Content", actionHandler: null, promote: true);
7777

7878
IReadOnlyList<SnackbarMessageQueueItem> messages = _snackbarMessageQueue.QueuedMessages;
79-
Assert.Equal(1, messages.Count);
79+
Assert.Single(messages);
8080
Assert.Equal("Content", messages[0].Content);
8181
Assert.Equal("Action Content", messages[0].ActionContent);
8282
Assert.True(messages[0].IsPromoted);

0 commit comments

Comments
 (0)