Beispiel #1
0
    static string testCase(double[] coordinates)
    {
        double[] converted = LKS92WGS84.convertXYToLatLon(LKS92WGS84.convertLatLonToXY(coordinates));
        string   result;

        if (Math.Round(converted[0], 8) == Math.Round(coordinates[0], 8) && Math.Round(converted[1], 8) == Math.Round(coordinates[1], 8))
        {
            result = "izpildās";
        }
        else
        {
            result = "neizpildās";
        }

        return(result);
    }
Beispiel #2
0
    static string testCase2(double[] coordinates, double[] lksValidate)
    {
        double[] converted = LKS92WGS84.convertLatLonToXY(coordinates);
        string   result;

        if (Math.Round(converted[0], 2) == lksValidate[0] && Math.Round(converted[1], 2) == lksValidate[1])
        {
            result = "izpildās";
        }
        else
        {
            result = "neizpildās";
        }

        return(result);
    }