public void DisplayTest() { IssuePriorityGraph target = new IssuePriorityGraph(); // TODO: Initialize to an appropriate value Project project = BuildDefaultProject(); DateRange range = new DateRange(DateTime.Now.Subtract(TimeSpan.FromDays(10)), DateTime.Now); AddIssues(project, 8, 2, 0); Control actual = target.Display(project, range); Assert.IsInstanceOfType(actual, typeof(Chart)); Chart chart = actual as Chart; Assert.AreEqual(1, chart.Series.Count); Assert.AreEqual(3, chart.Series[0].Points.Count); Assert.AreEqual(8, chart.Series[0].Points[0].YValues[0]); Assert.AreEqual(2, chart.Series[0].Points[1].YValues[0]); Assert.AreEqual(0, chart.Series[0].Points[2].YValues[0]); Assert.AreEqual(1, chart.Legends.Count); Assert.AreEqual(1, chart.Titles.Count); }
public void DataTitleTest() { IssuePriorityGraph target = new IssuePriorityGraph(); Assert.AreEqual("Issues By Priority", target.DataTitle); }
public void RequiresDateRangeTest() { IssuePriorityGraph target = new IssuePriorityGraph(); Assert.AreEqual(false, target.RequiresDateRange); }
public void SortOrderTest() { IssuePriorityGraph target = new IssuePriorityGraph(); Assert.AreEqual(1, target.SortOrder); }
public void IssuePriorityGraphConstructorTest() { IssuePriorityGraph target = new IssuePriorityGraph(); Assert.IsInstanceOfType(target, typeof(IssuePriorityGraph)); }