Beispiel #1
0
 public void FetchesAllFiles()
 {
     Tiler t = new FlatTiler();
     t.MaxZoomLevel = 15;
     t.NumberOfTiles = 4;
     t.ImageFetchFunction = Tiler_Test.FetchFunction;
     Image img = t.ConstructTiledImage();
 }
Beispiel #2
0
 public void FetchError()
 {
     Tiler t = new FlatTiler();
     t.ImageFetchFunction = (z, x, y) => { return Bitmap.FromFile("nofile.png"); };
     Exception ex = Assert.Catch(() =>
         {
             t.ConstructTiledImage();
         });
 }
Beispiel #3
0
 public void EmptyTest()
 {
     Exception ex = Assert.Catch(() =>
     {
         Tiler t = new FlatTiler();
         t.ConstructTiledImage();
     });
     Assert.That(ex, Is.InstanceOf(typeof(ArgumentNullException)));
 }