From 4ab144788963ea7636ae69c2c3eb585941c090c8 Mon Sep 17 00:00:00 2001 From: Stephen Cleary Date: Sat, 2 Dec 2023 09:36:16 -0500 Subject: [PATCH] Update tests. --- test/Directory.Build.props | 13 +++++++------ test/UnitTests/DequeUnitTests.cs | 4 ++-- test/UnitTests/UnitTests.csproj | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/test/Directory.Build.props b/test/Directory.Build.props index 5c42e39..057aa1d 100644 --- a/test/Directory.Build.props +++ b/test/Directory.Build.props @@ -1,7 +1,8 @@ @@ -10,13 +11,13 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/UnitTests/DequeUnitTests.cs b/test/UnitTests/DequeUnitTests.cs index 952c430..b411fdb 100644 --- a/test/UnitTests/DequeUnitTests.cs +++ b/test/UnitTests/DequeUnitTests.cs @@ -907,12 +907,12 @@ public void NongenericRemove_WrongType_DoesNothing() var list = new List(new[] { 13 }) as IList; list.Remove(this); list.Remove(null); - Assert.Equal(1, list.Count); + Assert.Single(list); var deque = new Deque(new[] { 13 }) as IList; deque.Remove(this); deque.Remove(null); - Assert.Equal(1, deque.Count); + Assert.Single(deque); } [Fact] diff --git a/test/UnitTests/UnitTests.csproj b/test/UnitTests/UnitTests.csproj index 29bd522..07372fd 100644 --- a/test/UnitTests/UnitTests.csproj +++ b/test/UnitTests/UnitTests.csproj @@ -1,7 +1,7 @@  - netcoreapp3.1 + net8.0