public void Expect_intersections_to_filter_to_commoon() { var l1 = new Dictionary <string, int> { { "0,1", 1 }, { "0,2", 2 }, { "3,3", 3 }, { "5,6", 4 } }; var l2 = new Dictionary <string, int> { { "1,0", 1 }, { "2,2", 2 }, { "3,3", 3 }, { "5,6", 4 } };; var common = Wire.CommonIntersections(l1, l2); Assert.That(common.Count, Is.EqualTo(2)); Assert.That(common, Does.Contain("3,3")); Assert.That(common, Does.Contain("5,6")); }