public void GhostsFromEliminatedEvidence(Evidences eliminated, params Ghost[] expected) { var actual = eliminated.GetEliminatedGhosts().ToList(); Assert.Equal(expected.Length, actual.Count); Assert.Equal(expected.OrderBy(o => o), actual.OrderBy(o => o)); }
public static IEnumerable <Ghost> GetGhosts(this Evidences found, Evidences eliminated) { var left = found.GetGhosts(); var right = eliminated.GetEliminatedGhosts(); return(from l in left from r in right where l == r select l); }