public void DoesNotFindTwoKeyValuePairs() { var text = @" Four score and seven years ago our fathers brought forth, upon this continent, a new nation, conceived in Liberty, and dedicated to the proposition that all men are created equal. url = http://americancivilwar.com/north/lincoln.html category=government,speech "; var keys = new List <string>() { "url", "category" }; var dict = GenUtils.RegexFindKeysAndValues(keys, text); Assert.AreEqual(dict.Keys.Count, 1); Assert.IsFalse(dict.ContainsKey("url")); Assert.That(dict.ContainsKey("category")); }