public void CalculateNoOfExternalLinks_IsValidUrl_ReturnNoOfExternalLinks() { var actualResult = new List <ExternalLinks> { GetExternalLinks("http://www.exact.com/global/terms-and-conditions-of-use", 1) }; var result = _target.CalculateNoOfExternalLinks("https://apps.exactonline.com/nl/nl-NL/V2").ToList(); Assert.IsNotNull(result); Assert.AreEqual(actualResult.FirstOrDefault().NoOfExternalLinks, result.FirstOrDefault().NoOfExternalLinks); Assert.AreEqual(actualResult.FirstOrDefault().ExternalLink, result.FirstOrDefault().ExternalLink); }