Add promt fix tests
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s

This commit is contained in:
Leonid Pershin
2025-10-21 12:07:56 +03:00
parent ef71568579
commit 1996fec14f
18 changed files with 398 additions and 333 deletions

View File

@@ -236,7 +236,7 @@ public class TelegramCommandProcessorTests : UnitTestBase
var chatTitle = "Test Chat";
// Act
var result = await _processor.ProcessMessageAsync(
Func<Task> act = async () => await _processor.ProcessMessageAsync(
messageText,
chatId,
username,
@@ -245,7 +245,8 @@ public class TelegramCommandProcessorTests : UnitTestBase
);
// Assert
result.Should().NotBeNull();
await act.Should().ThrowAsync<ArgumentException>()
.WithMessage("ChatId cannot be 0*");
}
[Fact]
@@ -746,7 +747,7 @@ public class TelegramCommandProcessorTests : UnitTestBase
);
// Assert
result.Should().Contain("Произошла ошибка");
result.Should().Contain("Произошла непредвиденная ошибка");
}
[Fact]