public void AddColumnWithSelected() { SectionRow.Selected(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "selected"); }
public void ApplyUnderlineToLastColumn() { SectionRow.Underline(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "_Text_"); }
public void ApplySubToLastColumn() { SectionRow.Sub(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"|Text|"); }
public void ApplyStrongToLastColumn() { SectionRow.Strong(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"*Text*"); }
public void ApplyRawToLastColumn() { SectionRow.Raw(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"!Text!"); }
public void ApplyEmphasisToLastColumn() { SectionRow.Emphasis(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"\Text\"); }
public void AddColumnWithWarn() { SectionRow.Warn(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "warn"); }
public void AddColumnWithLoading() { SectionRow.Loading(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "loading"); }
public void AddColumnWithQuiet() { SectionRow.Quiet(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "quiet"); }
public void AddColumnWithInfo() { SectionRow.Info(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "info"); }
public void AddColumnWithFail() { SectionRow.Fail(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "fail"); }
public void AddColumnWithError() { SectionRow.Error(); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), "error"); }
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|"); }
public void ApplyEmphasisToLastColumnIf() { SectionRow.EmphasisIf(false); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"Text"); SectionRow.EmphasisIf(true); row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"\Text\"); }
public void AddColumnWithWarnIf() { SectionRow.WarnIf(false); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"Text"); SectionRow.WarnIf(true); row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"warn"); }
public void AddColumnWithLodaingIf() { SectionRow.LoadingIf(false); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"Text"); SectionRow.LoadingIf(true); row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"loading"); }
public void ApplyUnderlineToLastColumnIf() { SectionRow.UnderlineIf(false); var row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"Text"); SectionRow.UnderlineIf(true); row = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(row.Last(), @"_Text_"); }
public void ReturnObjectArrayOfColumnData() { var columnObject1 = new { Id = "obj1" }; var columnObject2 = new { Id = "obj2" }; SectionRow.Column(columnObject1).Column(columnObject2); SectionRow.Build(); var columnData = (IEnumerable <object>)SectionRow.Build(); Assert.Equal(2, SectionRow.Columns.Count()); Assert.Equal(columnObject1, columnData.ElementAt(0)); Assert.Equal(columnObject2, columnData.ElementAt(1)); }