Path: redb-route/tests/redb.Route.Tests.Mail/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.Mail/RenamedTlsOptionTests.cs ---- using AwesomeAssertions; using redb.Route.Mail; namespace redb.Route.Tests.Mail; /// /// TLS options carry the names most connectors use: trustAllCertificates. 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 MailEndpointOptions().BindFromUri(new Dictionary { ["skipCertificateValidation"] = "true" }); act.Should().Throw().WithMessage("*'skipCertificateValidation' is renamed 'trustAllCertificates'*"); } [Fact] public void The_new_name_binds() => new MailEndpointOptions().BindFromUri(new Dictionary { ["trustAllCertificates"] = "true" }); }