public void ExecuteThrowsOnInvalidRequestUrl() { var restClient = new RestClient(); var request = MockRepository.GenerateStub<IRequest>(); request.Url = null; Assert.Throws<ArgumentException>(() => restClient.Execute(request)); }
public void ExecuteThrowsOnNullArgument() { var restClient = new RestClient(); Assert.Throws<ArgumentNullException>(() => restClient.Execute(null)); }