Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/AngleSharp.Diffing.Tests/AngleSharp.DiffingTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
</PropertyGroup>

<ItemGroup>
<!-- Run the tests on a newer AngleSharp than the library's minimum: from 1.3.1 its .NET 8 build
differs from the netstandard2.0 build the library compiles against (IHtmlCollection<T> indexer). -->
<PackageReference Update="AngleSharp" Version="1.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ private static bool TryGetTestNode(IDiffContext context, string cssSelector, [No
testNode = searchResult.Length switch
{
0 => null,
1 => searchResult[0],
1 => searchResult.First(),
_ => throw new DiffMatchSelectorReturnedTooManyResultsException($@"The CSS selector ""{cssSelector}"" returned {searchResult.Length} matches from the test node tree. No more than one is allowed.")
};

Expand Down