public static IEnumerable <Cell> CellsOf(this CollectionAssertCases <Cell> collection, CellType cellType) { return(collection.AsList.Where(c => c.CellType == cellType)); }
public static void Only <T>(this CollectionAssertCases <T> collection, Func <T, bool> selection) { Assert.IsTrue(collection.AsList.All(selection)); }
public static void OnlyCellsOf(this CollectionAssertCases <Cell> collection, CellType cellType) { Assert.IsTrue(collection.AsList.All(c => c.CellType == cellType)); }
public static void Exact <T>(this CollectionAssertCases <T> collection, T element) { Assert.That(collection.AsList, Is.EquivalentTo(new List <T> { element })); }