Path: redb-route/tests/redb.Route.Tests.RabbitMQ/RenamedTlsOptionTests.cs Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages. License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route Page: https://redbase.app/src/dev-2026-12-06/redb-route/tests/redb.Route.Tests.RabbitMQ/RenamedTlsOptionTests.cs ---- using AwesomeAssertions; using redb.Route.RabbitMQ; namespace redb.Route.Tests.RabbitMQ; /// /// TLS options carry the names most connectors use: sslCertPassword. The former name is refused with the new one named, not /// bound silently. /// public class RenamedTlsOptionTests { [Fact] public void The_former_name_is_refused_with_the_new_one() { var act = () => new RabbitMQEndpointOptions().BindFromUri(new Dictionary { ["sslCertPassphrase"] = "secret" }); act.Should().Throw().WithMessage("*'sslCertPassphrase' is renamed 'sslCertPassword'*"); } [Fact] public void The_new_name_binds() => new RabbitMQEndpointOptions().BindFromUri(new Dictionary { ["sslCertPassword"] = "secret" }); }