Skip to content

Commit 9f44be1

Browse files
authored
Fixed Sonar Code smell (#220)
1 parent 6960a33 commit 9f44be1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[![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)
55
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=bugs)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)
66
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)
7+
[![](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)
8+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit&metric=coverage)](https://sonarcloud.io/component_measures?id=nlog.mailkit&metric=coverage)
79

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

test/NLog.MailKit.Tests/IntegrationTests/MailTargetIntegrationTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ private static IList<IMessageTransaction> SendTest(Action createConfig, int toCo
162162
cancellationToken.Cancel(false);
163163

164164
var receivedTransactions = messageStore.ReceivedTransactions;
165-
Assert.Equal(1, receivedTransactions.Count);
165+
Assert.Single(receivedTransactions);
166166
var receivedMessage = receivedTransactions[0];
167167
AssertMailBox("[email protected]", receivedMessage.From);
168168
var receivedBody = GetReceivedBody(receivedMessage);

0 commit comments

Comments
 (0)