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

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

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

            Assert.Equal("options", exception.ParamName);
            Assert.StartsWith("Client credentials must be configured.", exception.Message);
        }