public void ClearResizesToZeroZero()
        {
            IRegularGridCoverage grid2D = new RegularGridCoverage(4, 4, 1, 1);

            grid2D.Clear();

            Assert.AreEqual(0, grid2D.SizeX);
            Assert.AreEqual(0, grid2D.SizeY);
        }
        public void EnvelopeChangesWhenCoverageIsCleared()
        {
            var coverage = new RegularGridCoverage(10, 10, 1, 1);
            var layer = new RegularGridCoverageLayer { Coverage = coverage };
            var envelope = new Envelope(0, 10, 0, 10);
            Assert.AreEqual(envelope, layer.Envelope);

            coverage.Clear();
            var EmptyEnvelope = new Envelope(0, 0, 0, 0);
            Assert.AreEqual(EmptyEnvelope, layer.Envelope);
        }
        public void ClearingCoverageCauseRenderRequired()
        {
            var coverage = new RegularGridCoverage(10, 10, 1, 1);
            var layer = new RegularGridCoverageLayer { Coverage = coverage };
            layer.Map = new Map(new Size(10,10));
            layer.Render();
            Assert.IsFalse(layer.RenderRequired);

            //action!
            coverage.Clear();

            Assert.IsTrue(layer.RenderRequired);
        }
Beispiel #4
0
        public void EnvelopeChangesWhenCoverageIsCleared()
        {
            var coverage = new RegularGridCoverage(10, 10, 1, 1);
            var layer    = new RegularGridCoverageLayer {
                Coverage = coverage
            };
            var envelope = new Envelope(0, 10, 0, 10);

            Assert.AreEqual(envelope, layer.Envelope);

            coverage.Clear();
            var EmptyEnvelope = new Envelope(0, 0, 0, 0);

            Assert.AreEqual(EmptyEnvelope, layer.Envelope);
        }
Beispiel #5
0
        public void ClearingCoverageCauseRenderRequired()
        {
            var coverage = new RegularGridCoverage(10, 10, 1, 1);
            var layer    = new RegularGridCoverageLayer {
                Coverage = coverage
            };

            layer.Map = new Map(new Size(10, 10));
            layer.Render();
            Assert.IsFalse(layer.RenderRequired);

            //action!
            coverage.Clear();

            Assert.IsTrue(layer.RenderRequired);
        }
        public void ClearResizesToZeroZero()
        {
            IRegularGridCoverage grid2D = new RegularGridCoverage(4, 4, 1, 1);
            grid2D.Clear();

            Assert.AreEqual(0, grid2D.SizeX);
            Assert.AreEqual(0, grid2D.SizeY);
        }