File tree Expand file tree Collapse file tree
MapWinGisTests-net6/MapWinGisTests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments