Ejemplo n.º 1
0
        public void CreateRequestMessage_ShouldCreateHttpRequestMessageWithSpecifiedHttpMethodAndRequestUri()
        {
            const string requestUri = "http://some/url";
            var          httpMethod = HttpMethod.Get;

            // Act
            var result = _sut.CreateRequestMessage(httpMethod, requestUri);

            // Assert
            result.ShouldBeEquivalentTo(new HttpRequestMessage(httpMethod, requestUri));
        }