Skip to content

Commit

Permalink
Update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenCleary committed Dec 2, 2023
1 parent 1a6a837 commit 4ab1447
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions test/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project>
<!--
Directory.Build.props (test) v1.1
- 1.1 Updates.
Directory.Build.props (test) v1.2
- 1.2 Dependency updates.
- 1.1 Dependency updates.
- 1.0 Initial release.
-->

Expand All @@ -10,13 +11,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="xunit" Version="2.6.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.2.0">
<PackageReference Include="coverlet.collector" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions test/UnitTests/DequeUnitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -907,12 +907,12 @@ public void NongenericRemove_WrongType_DoesNothing()
var list = new List<int>(new[] { 13 }) as IList;
list.Remove(this);
list.Remove(null);
Assert.Equal(1, list.Count);
Assert.Single(list);

var deque = new Deque<int>(new[] { 13 }) as IList;
deque.Remove(this);
deque.Remove(null);
Assert.Equal(1, deque.Count);
Assert.Single(deque);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion test/UnitTests/UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 4ab1447

Please sign in to comment.