From d4ffb8c63a172767377c583f1d77bee81a82299b Mon Sep 17 00:00:00 2001 From: Daniel Collingwood <82693586+danzuep@users.noreply.github.com> Date: Tue, 24 Sep 2024 01:18:17 +0800 Subject: [PATCH] missing optional bool in test --- tests/MailKitSimplified.Receiver.Tests/ImapReceiverUnitTests.cs | 2 +- .../MailFolderMonitorUnitTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/MailKitSimplified.Receiver.Tests/ImapReceiverUnitTests.cs b/tests/MailKitSimplified.Receiver.Tests/ImapReceiverUnitTests.cs index 76970b4..e2c0b3c 100644 --- a/tests/MailKitSimplified.Receiver.Tests/ImapReceiverUnitTests.cs +++ b/tests/MailKitSimplified.Receiver.Tests/ImapReceiverUnitTests.cs @@ -115,7 +115,7 @@ public async Task DisposeAsync_WithImapReceiver() public async Task ConnectImapClientAsync_VerifyType() { // Act - var imapReceiver = await _imapReceiver.ConnectAuthenticatedImapClientAsync(It.IsAny()); + var imapReceiver = await _imapReceiver.ConnectAuthenticatedImapClientAsync(It.IsAny(), It.IsAny()); // Assert Assert.NotNull(imapReceiver); Assert.IsAssignableFrom(imapReceiver); diff --git a/tests/MailKitSimplified.Receiver.Tests/MailFolderMonitorUnitTests.cs b/tests/MailKitSimplified.Receiver.Tests/MailFolderMonitorUnitTests.cs index 83e7dff..4ab26ab 100644 --- a/tests/MailKitSimplified.Receiver.Tests/MailFolderMonitorUnitTests.cs +++ b/tests/MailKitSimplified.Receiver.Tests/MailFolderMonitorUnitTests.cs @@ -30,7 +30,7 @@ public MailFolderMonitorUnitTests() .Returns(_imapReceiverMock.Object).Verifiable(); _imapReceiverMock.Setup(_ => _.ConnectMailFolderAsync(It.IsAny())) .ReturnsAsync(_mailFolderMock.Object).Verifiable(); - _imapReceiverMock.Setup(_ => _.ConnectAuthenticatedImapClientAsync(It.IsAny())) + _imapReceiverMock.Setup(_ => _.ConnectAuthenticatedImapClientAsync(It.IsAny(), It.IsAny())) .ReturnsAsync(_imapClientMock.Object).Verifiable(); _imapReceiverMock.SetupGet(_ => _.MailFolderClient) .Returns(_mailFolderClientMock.Object).Verifiable();