public void DisplayTest()
        {
            OpenVsResolvedGraph target = new OpenVsResolvedGraph(); // TODO: Initialize to an appropriate value
            Project project = BuildDefaultProject();
            AddIssues(project, 5, 1);
            DateRange range = new DateRange(DateTime.Now.Subtract(TimeSpan.FromDays(10)), DateTime.Now);
            Control actual = target.Display(project, range);

            Assert.IsInstanceOfType(actual, typeof(Chart));

            Chart chart = actual as Chart;
            Assert.AreEqual(2, chart.Series.Count);
            Assert.AreEqual(1, chart.Series[0].Points.Count);
            Assert.AreEqual(1, chart.Series[0].Points[0].YValues[0]);
            Assert.AreEqual(1, chart.Series[1].Points.Count);
            Assert.AreEqual(5, chart.Series[1].Points[0].YValues[0]);
            Assert.AreEqual(1, chart.Legends.Count);
            Assert.AreEqual(1, chart.Titles.Count);
        }
 public void SortOrderTest()
 {
     OpenVsResolvedGraph target = new OpenVsResolvedGraph();
     Assert.AreEqual(1, target.SortOrder);
 }
 public void DataTitleTest()
 {
     OpenVsResolvedGraph target = new OpenVsResolvedGraph(); // TODO: Initialize to an appropriate value
     string actual = target.DataTitle;
     Assert.AreEqual(actual, "Issues By Status");
 }
 public void RequiresDateRangeTest()
 {
     OpenVsResolvedGraph target = new OpenVsResolvedGraph(); // TODO: Initialize to an appropriate value
     Assert.AreEqual(false, target.RequiresDateRange);
 }