public async System.Threading.Tasks.Task CreateHttpActionTestAsync() { var options = new HttpOptions(); options.AddFileExtAsContentType(".txt", "is txt file"); var factory = new HttpFactory(options); var httpGet = factory.CreateHttp(HttpRequestActionType.Get) .Setup() .SetUrl("http://www.baidu.com"); var response = await httpGet.GetResponseAsync(); Assert.NotEmpty(response); }