Ejemplo n.º 1
0
        public async Task AuthenticateAsync_Call_ThrowsException()
        {
            var authenticator = new NullHttpClientAuthenticator();

            await Assert.ThrowsAsync <NotSupportedException>(() =>
                                                             authenticator.AuthenticateAsync(new Uri("http://test.com")));
        }
Ejemplo n.º 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")));
        }
Ejemplo n.º 3
0
        public void PrepareRequest_Call_DoesNothing()
        {
            var authenticator = new NullHttpClientAuthenticator();

            authenticator.PrepareHttpRequest(null);
        }