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