Add unit tests for RabbitMq and Udp transport servers and clients
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
- Implemented comprehensive unit tests for RabbitMqTransportServer, covering constructor, disposal, connection management, event handlers, and exception handling. - Added configuration tests for RabbitMqTransportServer to validate SSL, durable queues, auto-recovery, and custom virtual host options. - Created unit tests for UdpFrameProtocol, including frame parsing and serialization, header size validation, and round-trip data preservation. - Developed tests for UdpTransportClient, focusing on connection handling, event subscriptions, and exception scenarios. - Established tests for UdpTransportServer, ensuring proper start/stop behavior, connection state management, and event handling. - Included tests for UdpTransportOptions to verify default values and modification capabilities. - Enhanced service registration tests for Udp transport services in the dependency injection container.
This commit is contained in:
@@ -361,9 +361,9 @@ public sealed class HeaderCollectionTests
|
||||
|
||||
// Assert
|
||||
list.Should().HaveCount(3);
|
||||
list.Should().Contain(new KeyValuePair<string, string>("Content-Type", "application/json"));
|
||||
list.Should().Contain(new KeyValuePair<string, string>("Accept", "text/plain"));
|
||||
list.Should().Contain(new KeyValuePair<string, string>("Accept", "text/html"));
|
||||
list.Should().Contain(kvp => kvp.Key == "Content-Type" && kvp.Value == "application/json");
|
||||
list.Should().Contain(kvp => kvp.Key == "Accept" && kvp.Value == "text/plain");
|
||||
list.Should().Contain(kvp => kvp.Key == "Accept" && kvp.Value == "text/html");
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user