public void CurrentDateRangeTest()
 {
     ProjectSummary target = new ProjectSummary();
     DateRange actual = target.CurrentDateRange;
     Assert.IsNotNull(target.CurrentDateRange);
     Assert.IsTrue(actual.StartTime.AddSeconds(2).CompareTo(DateTime.Now) > 0);
     Assert.IsTrue(actual.FinishTime.AddSeconds(2).CompareTo(DateTime.Now) > 0);
 }
 public void DisplayTest()
 {
     ProjectSummary target = new ProjectSummary();
     Project project = new Project(0, "Name", DateTime.Now, DateTime.Now, "", "", "", DateTime.Now);
     Control control = target.Display(project, new DateRange(DateTime.Now, DateTime.Now));
     Assert.IsInstanceOfType(control, typeof(Table));
     Table table = control as Table;
     Assert.AreEqual(9, table.Rows.Count);
 }
 public void SortOrderTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(0, target.SortOrder);
 }
 public void RequiresDateRangeTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(target.RequiresDateRange, false);
 }
 public void DataTitleTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(target.DataTitle, "Summary");
 }