mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 19:08:45 +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
@@ -57,18 +57,18 @@ public sealed class FileExportFeedbackTests
|
||||
await sent.RunningShown;
|
||||
}
|
||||
|
||||
Assert.Multiple(() =>
|
||||
using (Assert.EnterMultipleScope())
|
||||
{
|
||||
Assert.That(sent.Events, Is.EqualTo(new[] { Event.SHOW_FILE_EXPORT_RUNNING, Event.HIDE_FILE_EXPORT_RUNNING }));
|
||||
Assert.That(((DataFileExportRunningMessage)sent.Data[1]).Key, Is.EqualTo(((DataFileExportRunningMessage)sent.Data[0]).Key));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AnExceptionRemovesTheRunningNotification()
|
||||
public async Task AnExceptionRemovesTheRunningNotification()
|
||||
{
|
||||
var sent = new SentNotifications();
|
||||
Assert.ThrowsAsync<IOException>(async () =>
|
||||
await Assert.ThrowsAsync<IOException>(async () =>
|
||||
{
|
||||
await using var feedback = new FileExportFeedback(sent.Send, _ => Task.CompletedTask);
|
||||
feedback.ShowRunning(FILE_PATH);
|
||||
|
||||
Reference in new issue
Block a user