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