public void Calculate_SetsSphericalCoordinates_FixedThetaCounterClockwise() { // Arrange IEnumerable <SphericalCoordinates> expected = CreateArrayOfThreeSphericalCoordinatesForFixedThetaCounterClockwise(); var coordinatesZeroZero = new SphericalCoordinates { Radius = 1.0, Phi = Angle.ForZeroDegrees, Theta = Angle.ForZeroDegrees }; var coordinatesZeroNintey = new SphericalCoordinates { Radius = 1.0, Phi = Angle.For90Degrees, Theta = Angle.ForZeroDegrees }; m_Sut.FromCoordinates = coordinatesZeroZero; m_Sut.ToCoordinates = coordinatesZeroNintey; m_Sut.TurnDirection = Constants.TurnDirection.Counterclockwise; m_Sut.Steps = 3; // Act m_Sut.Calculate(); // Assert SphericalCoordinatesHelper.AssertSphericalCoordinates(expected, m_Sut.SphericalCoordinates); }
public void Convert_SetsSphericalCoordinates_ForGivenValues() { // Arrange IEnumerable <SphericalCoordinates> expected = CreateArrayOfThreeSphericalCoordinates(); m_Sut.Radius = 1.0; m_Sut.PhiAngles = CreateArrayOfThreePhiAngles(); m_Sut.ThetaAngles = CreateArrayOfThreeThetaAngles(); // Act m_Sut.Convert(); // Assert SphericalCoordinatesHelper.AssertSphericalCoordinates(expected, m_Sut.SphericalCoordinates); }