mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 14:07:46 +08:00
fixed error in test project
This commit is contained in:
@@ -3,7 +3,6 @@ using mRemoteNG.Credential;
|
||||
using NSubstitute;
|
||||
using NUnit.Framework;
|
||||
|
||||
|
||||
namespace mRemoteNGTests.Credential
|
||||
{
|
||||
public class CredentialDeletionMsgBoxConfirmerTests
|
||||
@@ -20,14 +19,14 @@ namespace mRemoteNGTests.Credential
|
||||
public void ClickingYesReturnsTrue()
|
||||
{
|
||||
var deletionConfirmer = new CredentialDeletionMsgBoxConfirmer(MockClickYes);
|
||||
Assert.That(deletionConfirmer.Confirm(_credentialRecord), Is.True);
|
||||
Assert.That(deletionConfirmer.Confirm(new[] { _credentialRecord }), Is.True);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ClickingNoReturnsFalse()
|
||||
{
|
||||
var deletionConfirmer = new CredentialDeletionMsgBoxConfirmer(MockClickNo);
|
||||
Assert.That(deletionConfirmer.Confirm(_credentialRecord), Is.False);
|
||||
Assert.That(deletionConfirmer.Confirm(new [] { _credentialRecord }), Is.False);
|
||||
}
|
||||
|
||||
private DialogResult MockClickYes(string promptMessage, string title, MessageBoxButtons buttons, MessageBoxIcon icon)
|
||||
|
||||
Reference in New Issue
Block a user