public void CalculateReflectionRatio_Test(double conductivity, double permeability, double waveLength, double height1, double height2, double thetaDegrees, double traceLength, double angle, double expected, PolarizationType polarizationType = PolarizationType.Horizontal) { var thirdLab = new ThirdLabCalculationObject(new Conductivity(conductivity), new ElectricalPermeability(permeability), new WaveLength(waveLength), new Height(height1), new Height(height2), new ThetaDegrees(thetaDegrees), new TraceLength(traceLength, MetricPrefixes.One), polarizationType); var result = thirdLab.CalculateReflectionCoefficientByAngle( new ThetaDegrees(angle, MetricPrefixes.One, UnitsOfMeasurement.Degree) { Radians = angle }); Assert.AreEqual(Math.Round(expected, 2), Math.Round(result, 2)); }
public ThirdLabCalculationObject(Conductivity conductivity, ElectricalPermeability electricalPermeability, WaveLength waveLength, Height transmitterHeight, Height receiverHeight, ThetaDegrees thetaDegrees, TraceLength traceLength, PolarizationType polarizationType) { this.conductivity = conductivity; this.electricalPermeability = electricalPermeability; this.waveLength = waveLength; this.transmitterHeight = transmitterHeight; this.receiverHeight = receiverHeight; this.thetaDegrees = thetaDegrees; this.traceLength = traceLength; this.PolarizationType = polarizationType; }