public void Request_Create_WithBody_Success()
        {
            var s = new StringContent("hi");
            var r = StreamingRequest.CreateRequest(StreamingRequest.POST, "123", s);

            Assert.AreEqual(StreamingRequest.POST, r.Verb);
            Assert.AreEqual("123", r.Path);
            Assert.IsNotNull(r.Streams);
            Assert.AreEqual(1, r.Streams.Count);
            Assert.AreEqual(s, r.Streams[0].Content);
        }
Пример #2
0
        public void Request_Create_WithEmptyMethod()
        {
            var request = StreamingRequest.CreateRequest(string.Empty);

            Assert.Null(request);
        }