public DetailGridRowProxy(AutomationElement element) { this.Element = element; this.Cells = element.Children(a => a.Current.ClassName == "DataGridCell"); Assert.AreEqual(5, this.Cells.Count); }