Skip to content

Commit

Permalink
Fixed Sonar Code smell (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
snakefoot authored Jun 23, 2024
1 parent 6960a33 commit 9f44be1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
[![Build Status](https://dev.azure.com/NLogLogging/NLog/_apis/build/status/NLog.MailKit?branchName=master)](https://dev.azure.com/NLogLogging/NLog/_build/latest?definitionId=25&branchName=master)
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=bugs)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)
[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=code_smells)](https://sonarcloud.io/project/issues?id=nlog.mailkit&resolved=false&types=CODE_SMELL)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=coverage)](https://sonarcloud.io/component_measures?id=nlog.mailkit&metric=coverage)

Alternative Mail target for [NLog](https://github.com/nlog/nlog) using [MailKit](https://github.com/jstedfast/MailKit). Compatible with .NET standard 2+

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private static IList<IMessageTransaction> SendTest(Action createConfig, int toCo
cancellationToken.Cancel(false);

var receivedTransactions = messageStore.ReceivedTransactions;
Assert.Equal(1, receivedTransactions.Count);
Assert.Single(receivedTransactions);
var receivedMessage = receivedTransactions[0];
AssertMailBox("[email protected]", receivedMessage.From);
var receivedBody = GetReceivedBody(receivedMessage);
Expand Down

0 comments on commit 9f44be1

Please sign in to comment.