是否可以从VS2017代码覆盖率分析中排除某些方法?
我想排除简单的getter / setter或简单的工厂(就像胶水代码一样),就像这样:
public class TimeFactory : ITimeFactory
{
/// <summary>
/// Create a time object -> allows us to simulate time jumps in unit-tests.
/// </summary>
/// <returns></returns>
public IXTimer CreateXTimerObject() => new XTimer();
}
感谢。