public void OnTrySelectOperationThrowsWithNullRequest()
        {
            TestUriAndMethodOperationSelector selector = new TestUriAndMethodOperationSelector(new Uri("http://localhost"), new List <HttpOperationDescription>());
            string operationName;
            bool   differsByTrailingSlash;

            ExceptionAssert.ThrowsArgumentNull("request", () => selector.OnTrySelectOperationProxy(null, out operationName, out differsByTrailingSlash));
        }
        public void OnTrySelectOperationReturnsFalseForNullRequestUri()
        {
            TestUriAndMethodOperationSelector selector = new TestUriAndMethodOperationSelector(new Uri("http://localhost"), new List <HttpOperationDescription>());
            string             operationName;
            bool               differsByTrailingSlash;
            HttpRequestMessage request = new HttpRequestMessage();

            bool actual = selector.OnTrySelectOperationProxy(request, out operationName, out differsByTrailingSlash);

            Assert.AreEqual(false, actual, "The OnTrySelectOperation should have returned false because the request URI was null.");
        }