Set HttpContext.Current.Request.Browser.Type in ASP.NET
<p>Is there a way to set <code>HttpContext.Current.Request.Browser.Type</code> in ASP.NET. That is a read-only, string property. So you cannot really just assign a string to it. Tried initializing Browser property which is of type HttpBrowserCapabilities, but it has only one constructor and does not take any parameters and browser Type is still null. The reason why I want to be able to set  Type for browser is that my unit test is failing as Type property is null. </p>

<p>Edit per null check comments:
I could definitely modify code to check for null, but that will be just for my unit test as when the requests come from browsers, that value is never null. Hence not quite excited about doing that. But it can be my last resort.</p>
