/*outsideDiameter, numberOfTeeth * pitchDiameter, toothThickness, addendum, workingDepth, wholeDepth, circularPitch * baseCircularPitchAngle, toothThicknessAngle*/ public void TestCalculateParams(params object[] args) { var outsideDiameter = (float)args[0]; var numberOfTeeth = (int)args[1]; var spurGearEntity = new SpurGearEntity { CalculationStrategy = new SpurGearCalculationStrategyByNumberOfTeethAndOutsideDiameter() }; var spurGear = SpurGear.Create(1f, 1f, 1f, numberOfTeeth, 0f, 20f); spurGearEntity.Geometry = spurGear; spurGearEntity.OutsideDiameter = outsideDiameter; var pitchDiameter = (float)args[2]; var toothThickness = (float)args[3]; var addendum = (float)args[4]; var workingDepth = (float)args[5]; var wholeDepth = (float)args[6]; var circularPitch = (float)args[7]; Assert.AreEqual(pitchDiameter, spurGear.PitchDiameter, 0.01); Assert.AreEqual(toothThickness, spurGear.ToothThickness, 0.01); Assert.AreEqual(addendum, spurGear.Addendum, 0.01); Assert.AreEqual(workingDepth, spurGear.WorkingDepth, 0.01); Assert.AreEqual(wholeDepth, spurGear.WholeDepth, 0.01); Assert.AreEqual(circularPitch, spurGear.CircularPitch, 0.01); }
/// <summary> /// Create the <see cref="SpurGear" />. /// </summary> /// <returns></returns> public override SpurGear CreateSpurGear() { return(SpurGear.Create(4f, 0f, 0.5f, 10, 0, 20f)); }