AspNet.Security.OAuth.Introspection.Tests.OAuthIntrospectionMiddlewareTests.MissingAuthorityThrowsAnException C# (CSharp) Метод

MissingAuthorityThrowsAnException() приватный Метод

private MissingAuthorityThrowsAnException ( ) : void
Результат void
        public void MissingAuthorityThrowsAnException() {
            // Arrange, act, assert
            var exception = Assert.Throws<ArgumentException>(() => CreateResourceServer(options => {
                options.Authority = null;
            }));

            Assert.Equal("options", exception.ParamName);
            Assert.StartsWith("The authority or the introspection endpoint must be configured.", exception.Message);
        }