Skip to content

Commit 682020a

Browse files
Fix xUnit2031: use Assert.Single with predicate instead of Where+Assert.Single
Agent-Logs-Url: https://github.com/dotnet/android/sessions/51b7a15a-d4ad-4309-98ee-1487a03f3b99 Co-authored-by: simonrozsival <374616+simonrozsival@users.noreply.github.com>
1 parent 053ea40 commit 682020a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Microsoft.Android.Sdk.TrimmableTypeMap.Tests/Generator/TypeMapModelBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ public void Build_EmitArrayEntries_HonoursMaxArrayRank ()
887887

888888
var model1 = BuildModelWithArrays (new [] { peer }, maxArrayRank: 1);
889889
Assert.Equal (1, model1.MaxArrayRank);
890-
Assert.Single (model1.Entries.Where (e => e.AnchorRank is not null));
890+
Assert.Single (model1.Entries, e => e.AnchorRank is not null);
891891
}
892892

893893
[Fact]

0 commit comments

Comments
 (0)