public void InvalidSamlOperationException_StringCtor()
        {
            var msg     = "Message!";
            var subject = new UnsuccessfulSamlOperationException(msg);

            subject.Message.Should().Be(msg);
        }
        public void InvalidSamlOperationException_StringInnerExCtor()
        {
            var msg     = "Message!";
            var inner   = new Exception();
            var subject = new UnsuccessfulSamlOperationException(msg, inner);

            subject.Message.Should().Be(msg);
            subject.InnerException.Should().Be(inner);
        }
        public void InvalidSamlOperationException_SamlStatusCodeCtor()
        {
            var message           = "Message!";
            var status            = Saml2StatusCode.RequestVersionDeprecated;
            var statusMessage     = "Request Version Deprecated";
            var secondLevelStatus = "Second Level Status";

            var subject = new UnsuccessfulSamlOperationException(
                message,
                status,
                statusMessage,
                secondLevelStatus);

            subject.Message.Should().Be("Message!\n" +
                                        "  Saml2 Status Code: RequestVersionDeprecated\n" +
                                        "  Saml2 Status Message: Request Version Deprecated\n" +
                                        "  Saml2 Second Level Status: Second Level Status");
        }