public void TestContentLength() { const string uri = "https://raw.github.com/bdhero/bdhero/master/Assets/Icons/bdhero_gui_512.png"; var downloader = new FileDownloader { Uri = uri }; var actual = downloader.GetContentLength(); const long expected = 89485; Assert.AreEqual(expected, actual, "Incorrect Content-Length value"); }
public void TestContentLength() { const string uri = "http://www.gravatar.com/avatar/77a0d71856a3815b527de22e233a8827.png"; var downloader = new FileDownloader { Uri = uri }; var actual = downloader.GetContentLength(); const long expected = 5036; Assert.AreEqual(expected, actual, "Incorrect Content-Length value"); }