Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daveMueller authored and David Mueller x. committed Oct 26, 2023
1 parent ac41608 commit f429f16
Showing 1 changed file with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,17 +315,16 @@ public void MethodsWithExcludeFromCodeCoverageAttr()
FunctionExecutor.Run(async (string[] pathSerialize) =>
{
CoveragePrepareResult coveragePrepareResult =
await TestInstrumentationHelper.Run<MethodsWithExcludeFromCodeCoverageAttr>(instance =>
await TestInstrumentationHelper.Run<MethodsWithExcludeFromCodeCoverageAttr>(async instance =>
{
instance.TestLambda(string.Empty);
instance.TestLambda(string.Empty, 1);
foreach (dynamic _ in instance.TestYield("abc")) ;
foreach (dynamic _ in instance.TestYield("abc", 1)) ;
instance.TestLocalFunction(string.Empty);
instance.TestLocalFunction(string.Empty, 1);
((Task)instance.TestAsyncAwait()).ConfigureAwait(false).GetAwaiter().GetResult();
((Task)instance.TestAsyncAwait(1)).ConfigureAwait(false).GetAwaiter().GetResult();
return Task.CompletedTask;
await (Task)instance.TestAsyncAwait();
await (Task)instance.TestAsyncAwait(1);
},
persistPrepareResultToFile: pathSerialize[0]);

Expand Down Expand Up @@ -353,17 +352,16 @@ public void MethodsWithExcludeFromCodeCoverageAttr2()
FunctionExecutor.Run(async (string[] pathSerialize) =>
{
CoveragePrepareResult coveragePrepareResult =
await TestInstrumentationHelper.Run<MethodsWithExcludeFromCodeCoverageAttr2>(instance =>
await TestInstrumentationHelper.Run<MethodsWithExcludeFromCodeCoverageAttr2>(async instance =>
{
instance.TestLambda(string.Empty);
instance.TestLambda(string.Empty, 1);
foreach (dynamic _ in instance.TestYield("abc")) ;
foreach (dynamic _ in instance.TestYield("abc", 1)) ;
instance.TestLocalFunction(string.Empty);
instance.TestLocalFunction(string.Empty, 1);
((Task)instance.TestAsyncAwait()).ConfigureAwait(false).GetAwaiter().GetResult();
((Task)instance.TestAsyncAwait(1)).ConfigureAwait(false).GetAwaiter().GetResult();
return Task.CompletedTask;
await (Task)instance.TestAsyncAwait();
await (Task)instance.TestAsyncAwait(1);
},
persistPrepareResultToFile: pathSerialize[0]);

Expand Down

0 comments on commit f429f16

Please sign in to comment.