public void TestCount() { MacroscopeAllowedHosts AllowedHosts = new MacroscopeAllowedHosts(); List <string> TestUrls = new List <string> (); TestUrls.Add("https://nazuke.github.io/SEOMacroscope/"); TestUrls.Add("https://bogus.bogus.com/some/path/index.html"); TestUrls.Add("https://www.google.com/"); foreach (string Url in TestUrls) { AllowedHosts.AddFromUrl(Url: Url); } Assert.AreEqual( TestUrls.Count, AllowedHosts.Count(), string.Format("FAIL: {0} :: {1}", TestUrls.Count, AllowedHosts.Count()) ); }