Пример #1
0
        public void Catch_and_log_exception_when_configure_basic_authentication_with_invalid_data_user(string user, string password)
        {
            // Act
            try
            {
                var result = _provider.WithBasicAuthenticator(user, password);
                Assert.Fail();
            }
            catch (Exception)
            { }

            // Assert
            _loggerProvider.Verify(m => m.Log(It.IsAny <Exception>()), Times.Once);
        }