コード例 #1
0
 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);
 }
コード例 #2
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);
 }
コード例 #3
0
 public void SortOrderTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(0, target.SortOrder);
 }
コード例 #4
0
 public void RequiresDateRangeTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(target.RequiresDateRange, false);
 }
コード例 #5
0
 public void DataTitleTest()
 {
     ProjectSummary target = new ProjectSummary();
     Assert.AreEqual(target.DataTitle, "Summary");
 }