private void AssertExpectedCells( ExpectedCell[] expected) { var cells = _grid.ToArray(); Assert.AreEqual(expected.Length, cells.Length); CollectionAssert.Contains( _grid.VNode.Classes.ToArray(), _grid.ClsName ); for (int i = 0; i < cells.Length; i++) { var e = expected[i]; var r = cells[i]; e.AssertMatch(r); Assert.AreSame(_grid, r.Grid); Assert.IsNotNull(r.VNode); Assert.AreSame(_grid, r.Grid); CollectionAssert.Contains( _grid.VNode.VLayers[0].Content.ToArray(), r.VNode ); } }