2017-10-13 90 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(); 
} 

感謝。

回答

相關問題