You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Class1
{
[ExcludeFromCodeCoverage]
public int F1(string input)
{
Func<char, int> f = (c => { return (int)c; });
return input.Select(x =>
{
var l = new List<char> { x };
return l.Select(f).Last();
}).Sum();
}
[ExcludeFromCodeCoverage]
public IEnumerable<int> F2(string input)
{
foreach (char c in input)
{
yield return c;
}
}
[ExcludeFromCodeCoverage]
public async Task<string> F3(string input)
{
var f = new StreamReader(File.OpenRead(input));
var r = await f.ReadToEndAsync();
return r;
}
public static string F4(string input)
{
return input.ToUpperInvariant();
}
[ExcludeFromCodeCoverage]
public string F5(string input)
{
return input.ToUpperInvariant();
}
}
with a test to exercise method F4.
Expect just method F4 in the coverage file, with 100% coverage
Get 15.8% line coverage, with the lambda expressions in F1 and generated MoveNext methods in the implementations of F2 and F3 showing uncovered.
The text was updated successfully, but these errors were encountered:
This code
with a test to exercise method
F4
.Expect just method
F4
in the coverage file, with 100% coverageGet 15.8% line coverage, with the lambda expressions in
F1
and generatedMoveNext
methods in the implementations ofF2
andF3
showing uncovered.The text was updated successfully, but these errors were encountered: