Skip to content

Commit bc35d84

Browse files
update test
1 parent cd2b5fa commit bc35d84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/coverlet.core.tests/Symbols/CecilSymbolHelperTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,8 @@ public void GetBranchPoints_IgnoresSwitchIn_GeneratedMoveNext()
264264
public void GetBranchPoints_ExceptionFilter()
265265
{
266266
// arrange
267-
var type = _module.Types.First(x => x.FullName == typeof(ExceptionFilter).FullName);
268-
var method = type.Methods.First(x => x.FullName.Contains($"::{nameof(ExceptionFilter.Test)}"));
267+
var type = _module.Types.Single(x => x.FullName == typeof(ExceptionFilter).FullName);
268+
var method = type.Methods.Single(x => x.FullName.Contains($"::{nameof(ExceptionFilter.Test)}"));
269269
// act
270270
var points = CecilSymbolHelper.GetBranchPoints(method);
271271

0 commit comments

Comments
 (0)