We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2b5fa commit bc35d84Copy full SHA for bc35d84
test/coverlet.core.tests/Symbols/CecilSymbolHelperTests.cs
@@ -264,8 +264,8 @@ public void GetBranchPoints_IgnoresSwitchIn_GeneratedMoveNext()
264
public void GetBranchPoints_ExceptionFilter()
265
{
266
// 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)}"));
+ var type = _module.Types.Single(x => x.FullName == typeof(ExceptionFilter).FullName);
+ var method = type.Methods.Single(x => x.FullName.Contains($"::{nameof(ExceptionFilter.Test)}"));
269
// act
270
var points = CecilSymbolHelper.GetBranchPoints(method);
271
0 commit comments