Rethrow exception correctly in CoordinateTest.

This commit is contained in:
RoosterDragon
2015-12-29 20:12:05 +00:00
parent 5f13fa0343
commit 3e77f48b06

View File

@@ -31,14 +31,14 @@ namespace OpenRA.Test
{ {
Assert.That(cell, Is.EqualTo(cell.ToMPos(gridType).ToCPos(gridType))); Assert.That(cell, Is.EqualTo(cell.ToMPos(gridType).ToCPos(gridType)));
} }
catch (Exception e) catch
{ {
// Known problem on isometric mods that shouldn't be visible to players as these are outside the map. // Known problem on isometric mods that shouldn't be visible to players as these are outside the map.
if (gridType == MapGridType.RectangularIsometric && y > x) if (gridType == MapGridType.RectangularIsometric && y > x)
continue; continue;
Console.WriteLine("Coordinate {0} on grid type {1} failed to convert back.".F(cell, gridType)); Console.WriteLine("Coordinate {0} on grid type {1} failed to convert back.".F(cell, gridType));
throw e; throw;
} }
} }
} }