mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 02:47:21 +00:00
Upgraded to .NET 10 (#1147)
This commit is contained in:
1 parent
faae2951f7
commit
fc7399e81b
327 files changed
+3059
-3049
No files matched your search
@@ -30,11 +30,11 @@ public sealed class CloudProcessingTests
|
||||
{
|
||||
var validation = new DataSourceValidation { GetSelectedCloudTranscription = () => true };
|
||||
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(validation.ValidateUserAcknowledgedCloudEmbedding(false), Is.Not.Null);
|
||||
Assert.That(validation.ValidateUserAcknowledgedCloudEmbedding(true), Is.Null);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -59,11 +59,11 @@ public sealed class DependentFieldValidationTests
|
||||
var untouchedField = new FakeFormComponent();
|
||||
|
||||
await DependentFieldValidation.RevalidateAsync(null, touchedField, untouchedField, null);
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(touchedField.ValidationCount, Is.EqualTo(1), "The touched field is not checked again.");
|
||||
Assert.That(untouchedField.ValidationCount, Is.Zero, "The untouched field is checked.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
private sealed class FakeFormComponent : IFormComponent
|
||||
|
||||
@@ -27,11 +27,11 @@ public sealed class MailboxValidationTests
|
||||
[Test]
|
||||
public void AnUnknownEncryptionIsRejectedAndNeverOffered()
|
||||
{
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(DataSourceValidation.ValidateMailboxTransportSecurity(MailboxTransportSecurity.UNKNOWN), Is.Not.Null);
|
||||
Assert.That(ConfigurationSelectDataFactory.GetMailboxTransportSecurityData().Select(option => option.Value), Is.EqualTo(new[] { MailboxTransportSecurity.SSL_ON_CONNECT, MailboxTransportSecurity.STARTTLS }));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[TestCase(MailboxTransportSecurity.SSL_ON_CONNECT, ExpectedResult = 993)]
|
||||
@@ -51,11 +51,11 @@ public sealed class MailboxValidationTests
|
||||
const string STORAGE_ISSUE = "The keyring is locked.";
|
||||
var validationWithIssue = new DataSourceValidation { GetSecretStorageIssue = () => STORAGE_ISSUE };
|
||||
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(VALIDATION.ValidateMailboxPassword(string.Empty), Is.Not.Null, "An empty password was accepted.");
|
||||
Assert.That(VALIDATION.ValidateMailboxPassword(" secret with spaces "), Is.Null, "A password was trimmed or rejected for its spaces.");
|
||||
Assert.That(validationWithIssue.ValidateMailboxPassword("secret"), Is.EqualTo(STORAGE_ISSUE), "The issue of the keyring was not shown.");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user