public void GuideStepsHistory_ClearTest() { var historySize = 100; var scale = 1.59; GuideStepsHistory gsh = new GuideStepsHistory(historySize, GuiderScaleEnum.ARCSECONDS, 4); gsh.PixelScale = scale; IGuideStep step1 = new PHD2Guider.PhdEventGuideStep() { RADistanceRaw = -25, DECDistanceRaw = -36 }; IGuideStep step2 = new PHD2Guider.PhdEventGuideStep() { RADistanceRaw = -625, DECDistanceRaw = -1296 }; IGuideStep step3 = new PHD2Guider.PhdEventGuideStep() { RADistanceRaw = -25, DECDistanceRaw = -36 }; IGuideStep step4 = new PHD2Guider.PhdEventGuideStep() { RADistanceRaw = -625, DECDistanceRaw = -1296 }; gsh.AddGuideStep(step1); gsh.AddGuideStep(step2); gsh.AddGuideStep(step3); gsh.AddGuideStep(step4); gsh.Clear(); Assert.AreEqual(0, gsh.GuideSteps.Count); Assert.AreEqual(0, gsh.RMS.RA); Assert.AreEqual(0, gsh.RMS.Dec); Assert.AreEqual(0, gsh.RMS.Total); }
private void ResetGraphValues() { GuideStepsHistory.Clear(); }