public void FollowRedirectToGetFinalHTTPCode()
        {
            string curlSample = File.ReadAllText("CurlWithRedirect.txt");
            int    actualCode = CustomStringUtils.GetHTTPCodeFromCurlOutput(curlSample, true);

            Assert.IsTrue(actualCode == 200);
        }
        public void GetHTTPCodeFromCurlOutputTest()
        {
            string curlSample = File.ReadAllText("SampleCurlOutput.txt");
            int    actualCode = CustomStringUtils.GetHTTPCodeFromCurlOutput(curlSample);

            Assert.IsTrue(actualCode == 200);
        }
        public void GetLocationTest()
        {
            string curlSample = File.ReadAllText("CurlWithRedirect.txt");
            // TODO: insert correct test code
            int actualCode = CustomStringUtils.GetHTTPCodeFromCurlOutput(curlSample, false);

            Assert.IsTrue(actualCode == 301);

            string location = CustomStringUtils.GetLocation(curlSample);

            Assert.IsTrue(location == "http://www.starfieldtech.com/");
        }