コード例 #1
0
    public void mapdatatest()
    {
        float latitude;
        float longitude;

        float expectedlati = 23.5f;
        float expectedlong = 45;
        //checking game are correct updating the gps data;
        GPSData gpsdata = new GPSData();

        // input the data then checking the the data

        gpsdata.updateGpsData(expectedlati, expectedlong);

        latitude  = gpsdata.getLatitude();
        longitude = gpsdata.getLongitude();

        // checking both the latitude and longitude
        Assert.AreEqual(latitude, expectedlati);
        Assert.AreEqual(longitude, expectedlong);
    }