@@ -278,7 +278,7 @@ private void Perform_CreateCompileBackTest_Tests(string projectName, Language la
278278 Assert . AreEqual ( CompileState . BuildError , compileError . State ) ; //Resulting in build fail.
279279
280280 // Using our successful compile; launch a backtest!
281- var backtestName = $ "{ DateTime . UtcNow . ToStringInvariant ( "u " ) } API Backtest";
281+ var backtestName = $ "{ DateTime . UtcNow . ToStringInvariant ( "yyyy-MM-dd HH-mm-ss " ) } API Backtest";
282282 var backtest = ApiClient . CreateBacktest ( project . Projects . First ( ) . ProjectId , compileSuccess . CompileId , backtestName ) ;
283283 Assert . IsTrue ( backtest . Success ) ;
284284
@@ -320,7 +320,7 @@ private void Perform_CreateCompileBackTest_Tests(string projectName, Language la
320320 Assert . AreEqual ( backtestName , backtestRead . Name ) ;
321321
322322 //Update the note and make sure its been updated:
323- var newNote = DateTime . Now . ToStringInvariant ( "u " ) ;
323+ var newNote = DateTime . Now . ToStringInvariant ( "yyyy-MM-dd HH-mm-ss " ) ;
324324 var noteBacktest = ApiClient . UpdateBacktest ( project . Projects . First ( ) . ProjectId , backtest . BacktestId , note : newNote ) ;
325325 Assert . IsTrue ( noteBacktest . Success ) ;
326326 backtestRead = ApiClient . ReadBacktest ( project . Projects . First ( ) . ProjectId , backtest . BacktestId ) ;
@@ -370,7 +370,7 @@ public void ReadBacktestOrdersReportAndChart()
370370 backtestRead = WaitForBacktestCompletion ( ApiClient , project . ProjectId , backtest . BacktestId ) ;
371371 var backtestOrdersRead = ApiClient . ReadBacktestOrders ( project . ProjectId , backtest . BacktestId ) ;
372372 string stringRepresentation ;
373- foreach ( var backtestOrder in backtestOrdersRead )
373+ foreach ( var backtestOrder in backtestOrdersRead )
374374 {
375375 stringRepresentation = backtestOrder . ToString ( ) ;
376376 Assert . IsTrue ( ApiTestBase . IsValidJson ( stringRepresentation ) ) ;
@@ -409,7 +409,7 @@ public void UpdateBacktestName()
409409 {
410410 // We will be using the existing TestBacktest for this test
411411 var originalName = TestBacktest . Name ;
412- var newName = $ "{ originalName } - Amended - { DateTime . UtcNow . ToStringInvariant ( "u " ) } ";
412+ var newName = $ "{ originalName } - Amended - { DateTime . UtcNow . ToStringInvariant ( "yyyy-MM-dd HH-mm-ss " ) } ";
413413
414414 // Update the backtest name
415415 var updateResult = ApiClient . UpdateBacktest ( TestProject . ProjectId , TestBacktest . BacktestId , name : newName ) ;
@@ -643,7 +643,7 @@ public void CreatesLiveAlgorithm()
643643 Assert . IsTrue ( readLiveLogs . Length >= 0 , "The length of the logs was negative!" ) ;
644644 Assert . IsTrue ( readLiveLogs . DeploymentOffset >= 0 , "The deploymentOffset" ) ;
645645 }
646- catch ( Exception ex )
646+ catch ( Exception ex )
647647 {
648648 // Delete the project in case of an error
649649 Assert . IsTrue ( ApiClient . DeleteProject ( projectId ) . Success ) ;
0 commit comments