Пример #1
0
 public void CopyWithParams()
 {
     MockStore source = new MockStore();
     MockWritableStore target = new MockWritableStore();
     source.Copy(target, new double[] {-180, -90, 180, 90}, 1, 2);
     Assert.Equal(20, target.Count);
 }
Пример #2
0
 public void Copy()
 {
     MockStore source = new MockStore();
     MockWritableStore target = new MockWritableStore();
     source.Copy(target);
     Assert.Equal(1365, target.Count);
 }
Пример #3
0
        public void CopyWithProgress()
        {
            MockStore source = new MockStore();
            MockWritableStore target = new MockWritableStore();
            var info = source.GetTileInfo();
            var progress = new Progress<double>(pct =>
            {
                Assert.True(pct >= 0);
                Assert.True(pct <= 100);
            });

            var copyTask = Task.Run(() => source.Copy(target, info.Bounds, info.MinZoom, info.MaxZoom, progress));
            copyTask.Wait();
        }