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