Skip to content

Commit 3060f99

Browse files
committed
Updated for version update to 5.5 and fixed showing MapControl before using it.
1 parent 240df4f commit 3060f99

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

MapWinGisTests-net6/MapWinGisTests/AxMapTests.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void VersionTest()
1919
var version = form.GetMapWinGisVersion();
2020
version.ShouldNotBeNull();
2121
version.Major.ShouldBe(5);
22-
version.Minor.ShouldBe(4);
22+
version.Minor.ShouldBe(5);
2323
version.Build.ShouldBeGreaterThanOrEqualTo(0);
2424
_testOutputHelper.WriteLine("Version: {0}", version);
2525
}
@@ -28,6 +28,7 @@ public void VersionTest()
2828
public void MapProjectionTest()
2929
{
3030
using var form = new WinFormsApp1.Form1();
31+
form.Show(); // We need to show the form to have a valid map control
3132
form.ShouldNotBeNull();
3233

3334
var sfLocation = Helpers.GetTestFilePath("UnitedStates-3857.shp");
@@ -69,7 +70,8 @@ public void ShapefileKeyTest()
6970
// AS mentioned at https://mapwindow.discourse.group/t/key-property-of-shape-object-not-work/1250
7071

7172
using var form = new WinFormsApp1.Form1();
72-
form.ShouldNotBeNull();
73+
form.Show(); // We need to show the form to have a valid map control
74+
form.ShouldNotBeNull();
7375

7476
// Create shapefile:
7577
var sfPolygon = Helpers.CreateTestPolygonShapefile();

0 commit comments

Comments
 (0)