public void FITSTargetMetaDataPopulated() { var now = DateTime.Now; var metaData = new ImageMetaData(); metaData.Target.Name = "TEST"; metaData.Target.Coordinates = new NINA.Utility.Astrometry.Coordinates(Angle.ByHours(2.125), Angle.ByDegree(10.154), Epoch.J2000); var expectedHeaderCards = new List <FITSHeaderCard>() { new FITSHeaderCard("OBJECT", metaData.Target.Name, "Name of the object of interest"), new FITSHeaderCard("OBJCTRA", Astrometry.HoursToFitsHMS(metaData.Target.Coordinates.RA), "[H M S] RA of imaged object"), new FITSHeaderCard("OBJCTDEC", Astrometry.DegreesToFitsDMS(metaData.Target.Coordinates.Dec), "[D M S] Declination of imaged object"), }; var sut = new FITS(new ushort[] { 1, 2 }, 1, 1); sut.PopulateHeaderCards(metaData); foreach (var expectedCard in expectedHeaderCards) { sut.Header.HeaderCards.First(x => x.Key == expectedCard.Key).Should().BeEquivalentTo(expectedCard); } }