Ejemplo n.º 1
0
 private void VerifyGraphYRange(GraphSummary graphSummary, double minHeight, double maxHeight, int pointCount, int errorCount = 0)
 {
     RunUI(() =>
     {
         graphSummary.CountCurves(c =>
         {
             if (pointCount != CountPoints(c, minHeight, maxHeight))
             {
                 Assert.AreEqual(pointCount, CountPoints(c, minHeight, maxHeight));
             }
             if (errorCount != CountErrors(c, minHeight, maxHeight))
             {
                 Assert.AreEqual(errorCount, CountErrors(c, minHeight, maxHeight));
             }
             return(true);
         });
     });
 }
Ejemplo n.º 2
0
 private void VerifyGraphState(GraphSummary graphSummary, AreaGraphDisplayType displayType, int repCount, int pointCount, int errorCount = 0)
 {
     RunUI(() =>
     {
         Assert.AreEqual(repCount, graphSummary.CountCurves(c =>
         {
             if (pointCount != CountPoints(c))
             {
                 Assert.AreEqual(pointCount, CountPoints(c));
             }
             if (errorCount != CountErrors(c))
             {
                 Assert.AreEqual(errorCount, CountErrors(c));
             }
             return(displayType == AreaGraphDisplayType.bars
                 ? c.IsBar
                 : c.IsLine);
         }));
     });
 }