Skip to content

Commit

Permalink
missing optional bool in test
Browse files Browse the repository at this point in the history
  • Loading branch information
danzuep committed Sep 23, 2024
1 parent 2a8f23a commit d4ffb8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public async Task DisposeAsync_WithImapReceiver()
public async Task ConnectImapClientAsync_VerifyType()
{
// Act
var imapReceiver = await _imapReceiver.ConnectAuthenticatedImapClientAsync(It.IsAny<CancellationToken>());
var imapReceiver = await _imapReceiver.ConnectAuthenticatedImapClientAsync(It.IsAny<CancellationToken>(), It.IsAny<bool>());
// Assert
Assert.NotNull(imapReceiver);
Assert.IsAssignableFrom<IImapClient>(imapReceiver);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public MailFolderMonitorUnitTests()
.Returns(_imapReceiverMock.Object).Verifiable();
_imapReceiverMock.Setup(_ => _.ConnectMailFolderAsync(It.IsAny<CancellationToken>()))
.ReturnsAsync(_mailFolderMock.Object).Verifiable();
_imapReceiverMock.Setup(_ => _.ConnectAuthenticatedImapClientAsync(It.IsAny<CancellationToken>()))
_imapReceiverMock.Setup(_ => _.ConnectAuthenticatedImapClientAsync(It.IsAny<CancellationToken>(), It.IsAny<bool>()))
.ReturnsAsync(_imapClientMock.Object).Verifiable();
_imapReceiverMock.SetupGet(_ => _.MailFolderClient)
.Returns(_mailFolderClientMock.Object).Verifiable();
Expand Down

0 comments on commit d4ffb8c

Please sign in to comment.