public void RADecAltAxRADecTest(double ra, double dec) { double lst = TimeUtils.GetLocalSiderealTime(timeRecord.UtcTime, new TimeSpan(), longitude); double[] altAz = AstroConvert.RaDec2AltAz(ra, dec, lst, latitude); double[] raDec = AstroConvert.AltAz2RaDec(altAz[0], altAz[1], latitude, lst); Assert.AreEqual(ra, raDec[0], tolerance); Assert.AreEqual(dec, raDec[1], tolerance); }