public void ValidateShouldNotThrowExceptionIfMessageIsSigned()
        {
            var parsingResult = new FakeSamlMessage
            {
                HasValidSignature = true
            };
            var extractionResult = new ExtractionResult
            {
                HasValidSignature = false
            };

            _options.AcceptSignedMessagesOnly = true;

            _target.Validate(_options, extractionResult, parsingResult);
        }
        public void ValidateShouldThrowExceptionIfMessageIsUnsignedButNeedsToBe()
        {
            var parsingResult = new FakeSamlMessage
            {
                HasValidSignature = false
            };
            var extractionResult = new ExtractionResult
            {
                HasValidSignature = false
            };

            _options.AcceptSignedMessagesOnly = true;

            Assert.Throws <SamlException>(() => _target.Validate(_options, extractionResult, parsingResult));
        }