public DateTimeValueTracker(SnapshotColumnInfo column, List <NamedTimeRange> namedTimeRanges) { _columnName = column.Name; _isLocal = column.DateType == DateTimeKind.Local; _namedTimeRanges = namedTimeRanges; _default = new DefaultValueTracker(column.Name); }
public void HeadingIsSet() { //Arrange var col = new SnapshotColumnInfo("ColName"); //Act var report = new[] { "T" }.AsReport(rep => rep.AddColumn(t => t, cc => SnapshotColumnFormatter.Format(cc, _table, col))); //Assert var output = new Output(); output.WrapLine("Here we expect the report column to have the heading \"Colname\":"); output.WriteLine(); output.FormatTable(report); output.Report.Verify(); }