コード例 #1
0
        public void ExecuteThrowsOnInvalidRequestUrl()
        {
            var restClient = new RestClient();
            var request = MockRepository.GenerateStub<IRequest>();
            request.Url = null;

            Assert.Throws<ArgumentException>(() => restClient.Execute(request));
        }
コード例 #2
0
        public void ExecuteThrowsOnNullArgument()
        {
            var restClient = new RestClient();

            Assert.Throws<ArgumentNullException>(() => restClient.Execute(null));
        }