Ejemplo n.º 1
0
 public void SetLocation(double latitude, double longitude, double altitude)
 {
     _convertedLatitude  = DoubleToInt64Converter.Convert(latitude);
     _convertedLongitude = DoubleToInt64Converter.Convert(longitude);
     _convertedAltitude  = DoubleToInt64Converter.Convert(altitude);
     if (CanSendLocationInformation && Connected)
     {
         SendLocationInformation();
     }
 }
        private void VerifyDoubleConvertsToInt64(double testValue, long expectedResult)
        {
            // Act
            var result = _target.Convert(testValue);

            // Assert
            result.Should().Be(expectedResult);
        }