public void GPSCreationTest() { GPSLocation gps = new GPSLocation("myID", 30.25, 12.42); Assert.AreEqual(30.25, gps.getLattitude()); Assert.AreEqual(12.42, gps.getLongitude()); }
public void GPSCreation2Test() { GPSLocation gps = new GPSLocation(10.12, 21.21, 51.12, 18.192); Assert.AreEqual(10.12, gps.getLattitude()); Assert.AreEqual(21.21, gps.getLongitude()); Assert.AreEqual(51.12, gps.getX()); Assert.AreEqual(18.192, gps.getY()); }
public void Test_GetLongitude() { // Arrange double expected = -4.1; GPSLocation GPSL = new GPSLocation(57.3, -4.1); // Act double actual = GPSL.getLongitude(); // Assert Assert.AreEqual(expected, actual); }
public void Test_SetLongitude() { // Arrange double expected = -1.66; GPSLocation GPSL = new GPSLocation(52.4, 0); // Act GPSL.setLongitude(-1.66); double actual = GPSL.getLongitude(); // Assert Assert.AreEqual(expected, actual); }
public void GPSGetLongitude() { GPSLocation gps = new GPSLocation("myID5", 1.21, 2.12); Assert.AreEqual(2.12, gps.getLongitude()); }