34. Example

[Test]
[Category("SodaRequest")]
public void New_Returns_Request_With_Unset_ContentLength_For_Empty_Payload()
{
var request = new SodaRequest(exampleUri, "POST", null, null, null);
//The default is -1, which indicates the property has not been set and that there is no request data to send.
//http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.contentlength(v=vs.110).aspx
Assert.AreEqual(-1, request.webRequest.ContentLength);
}