2017-10-13 268 views
0

是否可以从VS2017代码覆盖率分析中排除某些方法?VS 2017代码覆盖率:排除分析方法

我想排除简单的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(); 
} 

感谢。

回答