public void HasResponseType_ReturnsExpectedResult(string type, bool result)
        {
            // Arrange
            var request = new OpenIdConnectRequest();

            request.ResponseType = type;

            // Act and assert
            Assert.Equal(result, request.HasResponseType(OpenIdConnectConstants.ResponseTypes.Code));
        }
        public void HasResponseType_ThrowsAnExceptionForNullOrEmptyResponseType(string type)
        {
            // Arrange
            var request = new OpenIdConnectRequest();

            // Act and assert
            var exception = Assert.Throws <ArgumentException>(delegate
            {
                request.HasResponseType(type);
            });

            Assert.Equal("type", exception.ParamName);
            Assert.StartsWith("The response type cannot be null or empty.", exception.Message);
        }