public void TestSatCalc() { testDish = new Dish(53.55, -2.77); testSatellite = new Satellite("TestSat", -27.0); testSatellite.CalcDishAngles(testDish.Latitude, testDish.Longitude); Assert.AreEqual(209.2, testSatellite.Azimuth, "Azimuth fail"); Assert.AreEqual(24.9, testSatellite.Elevation, "Elevation fail"); }
static void Main(string[] args) { Dish myDish = new Dish(53.55, -2.77); Satellite mySat = new Satellite("TestSat", -27.0); mySat.CalcDishAngles(myDish.Latitude, myDish.Longitude); Console.WriteLine("Azimuth: {0}, Elevation: {1}", mySat.Azimuth, mySat.Elevation); }
public void TestDishAngles() { testSatellite.CalcDishAngles(13.0, -2.0); Assert.AreEqual(130.0, testSatellite.Azimuth, "Azimuth incorrect"); Assert.AreEqual(66.8, testSatellite.Elevation, "Elevation incorrect"); testSatellite = new Satellite("TestSat", -27); testSatellite.CalcDishAngles(-43.0, 11.0); Assert.AreEqual(311.1, testSatellite.Azimuth, "Azimuth incorrect"); Assert.AreEqual(27.5, testSatellite.Elevation, "Elevation incorrect"); }
public void TestSatelliteConstructor() { testSatellite = new Satellite("test", 253.55); Assert.AreEqual(0.0, testSatellite.Longitude, "Longitude oob fail"); testSatellite = new Satellite("test", -253.55); Assert.AreEqual(0.0, testSatellite.Longitude, "Longitude oob fail"); testSatellite = new Satellite("test", -53.55); Assert.AreEqual(-53.55, testSatellite.Longitude, "Longitude set fail"); }
public void Begin() { Console.WriteLine("Setup SatelliteTester"); testSatellite = new Satellite("TestSat", 13); }