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