public void OperatorGreaterOrEqualThan_AddsAngles_ForGivenAngles( double oneInDegrees, double twoInDegrees, bool expected) { // Arrange AzimuthAngle one = AzimuthAngle.FromDegrees(oneInDegrees); AzimuthAngle two = AzimuthAngle.FromDegrees(twoInDegrees); // Act // Assert Assert.AreEqual(expected, one >= two); }
public void OperatorMinus_AddsAngles_ForGivenAngles( double oneInDegrees, double twoInDegrees, double expectedInDegrees) { // Arrange AzimuthAngle one = AzimuthAngle.FromDegrees(oneInDegrees); AzimuthAngle two = AzimuthAngle.FromDegrees(twoInDegrees); AzimuthAngle expected = AzimuthAngle.FromDegrees(expectedInDegrees); // Act AzimuthAngle actual = one - two; // Assert NUnitHelper.AssertDegrees(expected.Degrees, actual.Degrees); }
public void FromDegrees_CreatesInstanceWithRadians_ForGivenValues( double degrees, double expectedDegrees) { Console.WriteLine("Testing:"); Console.WriteLine("degrees = {0:F6}", degrees); Console.WriteLine("expectedDegrees = {0:F6}", expectedDegrees); // Arrange // Act AzimuthAngle sut = AzimuthAngle.FromDegrees(degrees); // Assert NUnitHelper.AssertDegrees(expectedDegrees, sut.Degrees); }