public void CreateExportText() { var ti = new BaseTextItem(); var exportText = (ExportText)ti.CreateExportColumn(); Assert.That(exportText.Name,Is.EqualTo(ti.Name)); Assert.That(exportText.Location,Is.EqualTo(ti.Location)); Assert.That(exportText.Size,Is.EqualTo(ti.Size)); Assert.That(exportText.Font , Is.EqualTo(GlobalValues.DefaultFont)); }
public void FormatTimeSpanfromTime() { var ti = new BaseTextItem(); ti.DataType = "System.TimeSpan"; ti.FormatString = "hh:mm:ss"; ti.Text = new TimeSpan(7,17,20).ToString(); var exportColumn = (ExportText)ti.CreateExportColumn(); StandardFormatter.FormatOutput(exportColumn); Assert.That(ti.Text, Is.EqualTo("07:17:20")); }