public void Calculate_SetsSphericalCoordinates_FixedPhiClockwise() { // Arrange IEnumerable <SphericalCoordinates> expected = CreateArrayOfThreeSphericalCoordinatesForFixedPhiClockwise(); var coordinatesZeroZero = new SphericalCoordinates { Radius = 1.0, Phi = Angle.ForZeroDegrees, Theta = Angle.ForZeroDegrees }; var coordinatesZeroNintey = new SphericalCoordinates { Radius = 1.0, Phi = Angle.ForZeroDegrees, Theta = Angle.For90Degrees }; m_Sut.FromCoordinates = coordinatesZeroZero; m_Sut.ToCoordinates = coordinatesZeroNintey; m_Sut.TurnDirection = Constants.TurnDirection.Clockwise; m_Sut.Steps = 3; // Act m_Sut.Calculate(); // Assert SphericalCoordinatesHelper.AssertSphericalCoordinates(expected, m_Sut.SphericalCoordinates); }
public void Calculate_CallsCalculate_WhenCalled() { // Arrange m_Sut.FromCoordinates = m_CoordinatesZeroZero; m_Sut.ToCoordinates = m_CoordinatesZeroNintey; // Act m_Sut.Calculate(); // Assert m_Calculator.Received().Calculate(); }