我有一堂课:
public class SourceServerProvider : ISourceServerProvider
{
private readonly ISourceServer _sourceServer;
public SourceServerProvider()
:this(new SourceServer())
{ }
public SourceServerProvider(ISourceServer sourceServer)
{
_sourceServer = sourceServer;
}
}
对此块的 MS 代码覆盖率测试投诉:
public SourceServerProvider()
:this(new SourceServer())
{ }
我不知道如何为上面的块编写单元测试。请指教..