예제 #1
0
        public async Task AuthenticateAsync_Call_ThrowsException()
        {
            var authenticator = new NullHttpClientAuthenticator();

            await Assert.ThrowsAsync <NotSupportedException>(() =>
                                                             authenticator.AuthenticateAsync(new Uri("http://test.com")));
        }
예제 #2
0
        public void CanAuthenticate_Call_AlwaysReturnsFalse()
        {
            var authenticator = new NullHttpClientAuthenticator();

            Assert.False(authenticator.CanAuthenticate(new Uri("http://test.com")));
            Assert.False(authenticator.CanAuthenticate(new Uri("http://test.com")));
        }
예제 #3
0
        public void PrepareRequest_Call_DoesNothing()
        {
            var authenticator = new NullHttpClientAuthenticator();

            authenticator.PrepareHttpRequest(null);
        }