I am trying to test a factory class, checking that the set up was correct:
var request = _target.BuildWebRequest(_url, "POST", "someData", "application/xml");
Assert.That(request.ContentType, Is.EqualTo("application/xml"));
However, for some reason, calling the Getter for ContentType executes the web request, and results in an exception if _url can't be found.
This is weird, and not the behavior I am expecting.
How can I get ContentType without triggering this request?