mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-04 18:47:21 +00:00
Upgraded the tests to NUnit v5.0.0 and awaited their asynchronous assertions
This commit is contained in:
21 files changed
+51
-54
No files matched your search
@@ -65,10 +65,10 @@ public sealed class FileExportFeedbackTests
|
||||
}
|
||||
|
||||
[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