@@ -74,14 +74,13 @@ public void BeforeEach()
7474
7575 this . _configurationManagerMock . Setup ( configManager => configManager . GetConfiguration < int > ( "GENERAL" , "batchSize" , "batchMaxSize" ) ) . Returns ( 1 ) ;
7676 this . _configurationManagerMock . Setup ( configManager => configManager . GetConfiguration < bool > ( "GENERAL" , "batchSize" , "limitBatchSize" ) ) . Returns ( true ) ;
77- this . _configurationManagerMock . Setup ( configManager => configManager . GetConfiguration < int > ( "GENERAL" , "batchMaxBytes" ) ) . Returns ( 1024 ) ;
77+ this . _configurationManagerMock . Setup ( configManager => configManager . GetConfiguration < long > ( "GENERAL" , "batchMaxBytes" ) ) . Returns ( 1 ) ;
7878 }
7979
8080 [ TestMethod ]
8181 [ DynamicData ( nameof ( GetSingleTileTestParameters ) , DynamicDataSourceType . Method ) ]
8282 public void WhenGivenSourcesWithOneTile_ShouldWriteAllTilesToTarget ( int numberOfSources , bool isTargetNew )
8383 {
84- var numberOfWriteCalls = isTargetNew ? numberOfSources : numberOfSources + 1 ;
8584 var taskTargetTuple = this . SetupTestTask ( numberOfSources , isTargetNew ) ;
8685 var testTask = taskTargetTuple . Item1 ;
8786 var targetDataMock = taskTargetTuple . Item2 ;
@@ -102,7 +101,7 @@ public void WhenGivenSourcesWithOneTile_ShouldWriteAllTilesToTarget(int numberOf
102101 tiles => tiles . All (
103102 tile => testSourceTiles . Any ( sourceTile => sourceTile . Z == tile . Z && sourceTile . X == tile . X && sourceTile . Y == tile . Y )
104103 )
105- ) ) , Times . Exactly ( numberOfWriteCalls ) ) ;
104+ ) ) , Times . Exactly ( numberOfSources ) ) ;
106105
107106 Assert . AreEqual ( testSourceTiles . Length , resultWrittenTiles . Count ) ;
108107 Assert . IsTrue ( testSourceTiles . All (
0 commit comments