Add promt fix tests
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s
All checks were successful
SonarQube / Build and analyze (push) Successful in 2m54s
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user