public void Transcode_returns_title_if_it_can_be_extracted()
        {
            // arrange
            const string expectedTitle = "Some title ¹ê³ó¿Ÿñæ";
            const string htmlContent   = "<html><head><title>" + expectedTitle + "</title></head><body></body></html>";

            var nReadabilityTranscoder    = new NReadabilityTranscoder();
            var urlFetcher                = new SimpleUrlFetcherStub(htmlContent);
            var nReadabilityWebTranscoder = new NReadabilityWebTranscoder(nReadabilityTranscoder, urlFetcher);

            var webTranscodingInput = new WebTranscodingInput("http://dummy.com/");

            // act
            WebTranscodingResult webTranscodingResult = nReadabilityWebTranscoder.Transcode(webTranscodingInput);

            // assert
            Assert.IsTrue(webTranscodingResult.TitleExtracted);
            Assert.AreEqual(expectedTitle, webTranscodingResult.ExtractedTitle);
        }
        public void Transcode_returns_title_if_it_can_be_extracted()
        {
            // arrange
              const string expectedTitle = "Some title �����";
              const string htmlContent = "<html><head><title>" + expectedTitle + "</title></head><body></body></html>";

              var nReadabilityTranscoder = new NReadabilityTranscoder();
              var urlFetcher = new SimpleUrlFetcherStub(htmlContent);
              var nReadabilityWebTranscoder = new NReadabilityWebTranscoder(nReadabilityTranscoder, urlFetcher);

              var webTranscodingInput = new WebTranscodingInput("http://dummy.com/");

              // act
              WebTranscodingResult webTranscodingResult = nReadabilityWebTranscoder.Transcode(webTranscodingInput);

              // assert
              Assert.IsTrue(webTranscodingResult.TitleExtracted);
              Assert.AreEqual(expectedTitle, webTranscodingResult.ExtractedTitle);
        }