public void GetImageBordersNullSize()
        {
            string           proj = GdalWorker.GetProjString(_in4326);
            CoordinateSystem cs   = GdalWorker.GetCoordinateSystem(proj);

            Assert.Throws <ArgumentNullException>(() => GdalWorker.GetImageBorders(_in4326, null, cs));
        }
        public void GetImageBordersNullPath()
        {
            using Image image = Image.NewFromFile(_in4326);
            Size             size = new Size(image.Width, image.Height);
            string           proj = GdalWorker.GetProjString(_in4326);
            CoordinateSystem cs   = GdalWorker.GetCoordinateSystem(proj);

            Assert.Throws <ArgumentNullException>(() => GdalWorker.GetImageBorders(null, size, cs));
        }
        public void GetImageBordersNonExistingPath()
        {
            using Image image = Image.NewFromFile(_in4326);
            Size             size = new Size(image.Width, image.Height);
            string           proj = GdalWorker.GetProjString(_in4326);
            CoordinateSystem cs   = GdalWorker.GetCoordinateSystem(proj);

            Assert.Throws <FileNotFoundException>(() => GdalWorker.GetImageBorders(ShouldFail, size, cs));
        }
        public void GetImageBordersNormal()
        {
            using Image image = Image.NewFromFile(_in4326);
            Size             size = new Size(image.Width, image.Height);
            string           proj = GdalWorker.GetProjString(_in4326);
            CoordinateSystem cs   = GdalWorker.GetCoordinateSystem(proj);

            GeoCoordinate minCoordinate = null;
            GeoCoordinate maxCoordinate = null;

            Assert.DoesNotThrow(() => (minCoordinate, maxCoordinate) = GdalWorker.GetImageBorders(_in4326, size, cs));
            Assert.True(minCoordinate is GeodeticCoordinate && maxCoordinate is GeodeticCoordinate);
        }