Exemplo n.º 1
0
 /// <summary>
 /// This function is used to validate the bitmap at specified level, x and y.
 /// </summary>
 /// <param name="testFolderName">Plate file folder.</param>
 /// <param name="tileLocator">Tile Locator.</param>
 /// <param name="level">Level of tile.</param>
 /// <param name="x">X coordinate of the tile.</param>
 /// <param name="y">Y coordinate of the tile.</param>
 private void ValidatePyramid(string testFolderName, MockClasses.MockMultipleDemTileLocator tileLocator, int level, int x, int y)
 {
     Stream tileStream = PlateFileHelper.GetDEMTileFromMultiplePlates(level, x, y, testFolderName);
     short[] expected = tileLocator.Deserialize(level, x, y);
     short[] actual = GetDemTileData(tileStream);
     Assert.IsTrue(CompareShortArray(expected, actual));
 }
Exemplo n.º 2
0
 /// <summary>
 /// This function is used to validate the bitmap at specified level, x and y.
 /// </summary>
 /// <param name="testFolderName">Plate file folder.</param>
 /// <param name="tileLocator">Tile Locator.</param>
 /// <param name="level">Level of tile.</param>
 /// <param name="x">X coordinate of the tile.</param>
 /// <param name="y">Y coordinate of the tile.</param>
 private static void ValidatePyramid(string testFolderName, MockClasses.MockMultipleTileLocator tileLocator, int level, int x, int y)
 {
     Stream tileStream = PlateFileHelper.GetTileFromMultiplePlates(level, x, y, testFolderName);
     Bitmap actual = new Bitmap(tileStream);
     Bitmap expected = tileLocator.Deserialize(level, x, y);
     Assert.IsTrue(CompareBitmap(expected, actual));
 }