// Read data from CSV file private void readData() { records = csvFile.text.Split(lineSeperater); indexArray = new indexData[records.Length - 1]; int x = 0; foreach (string record in records) { string[] fields = record.Split(fieldSeperator); indexData key = new indexData(); key.index = x; key.name = fields[0]; indexArray[x] = key; if (x != record.Length - 1) { x++; } } double q = AASElementsPlanetaryOrbit.EarthEccentricity(1); }
public void EarthEccentricityTest(double jd, double expectedEccentricity) { double eccentricity = AASElementsPlanetaryOrbit.EarthEccentricity(jd); Assert.Equal(expectedEccentricity, eccentricity); }