public void AddColumnWithErrorIf() { SectionRow.ErrorIf(false); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"Text"); SectionRow.ErrorIf(true); row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"error"); }