我在teamcity上使用dotCover并运行单元测试,但发现代码覆盖中未包含的一些方法(未以绿色或红色突出显示),如下面的代码。
我可以在哪里更改此代码覆盖率?
[Route("messages")]
26 [HttpGet]
27 [HandleException]
28 public async Task<GetMessagesResponse> GetMessagesAsync(string cultureCode)
29 {
30 var messages = await _messageApiProxy.GetMessagesAsync(cultureCode, _userContext.UserId);
31
32 return new GetMessagesResponse
33 {
34 Result = Succeeded,
35 Messages = messages.Select(TransformToModelFrom).ToArray()
36 };
37 }
38
39 [Route("messages/{messageId}/{status:int}")]
40 [HttpGet]
41 [HandleException]
42 public async Task<GetMessageDetailResponse> GetMessageAsync(string cultureCode, Guid messageId, int status)
43 {
44 var message = await _messageApiProxy.GetMessageAsync(cultureCode, _userContext.UserId, messageId, status);
45
46 return new GetMessageDetailResponse
47 {
48 Result = Succeeded,
49 MessageInfo = TransformToModelFrom(message)
50 };
51 }