public void RuleFlipWorking() { RulesFlip rulesFlip = new RulesFlip(); rulesFlip.Start(); Assert.IsTrue(rulesFlip.GetCoordY().Count != 0); }
public void RuleStabilizationWorking() { RulesFlip rulesFlip = new RulesFlip(); rulesFlip.Start(); RulesStabilization rulesStabilization = new RulesStabilization(rulesFlip.GetAngle(), rulesFlip.GetAngleIncrease()); rulesStabilization.Start(); Assert.IsTrue(rulesStabilization.GetCoordY().Count != 0); }
private void btnStart_Click(object sender, EventArgs e) { rTxtTest.Clear(); rTxtFlip.Clear(); rTxtStabilization.Clear(); RulesFlip rulesFlip = new RulesFlip(); Start(rulesFlip, rTxtFlip); m_graphFlip.SetPoints(CoordYToPointF(rulesFlip.GetCoordY())); RulesStabilization rulesStabilization = new RulesStabilization(rulesFlip.GetAngle(), rulesFlip.GetAngleIncrease()); Start(rulesStabilization, rTxtStabilization); m_graphStabilization.SetPoints(CoordYToPointF(rulesStabilization.GetCoordY())); m_graphFlip.Draw(); m_graphStabilization.Draw(); }