@@ -77,7 +77,7 @@ public void MaskSetter()
7777 [ TestMethod ]
7878 public void Compare ( )
7979 {
80- throw new Exception ( "This test causes memory corruption " ) ;
80+ throw new Exception ( "This test kills test engine process due to Debug.Assert " ) ;
8181 NDArray nd = new double [ , ] { { 1 , 2 , 3 } , { 4 , 5 , 6 } } ;
8282 ( nd < 3 ) . Should ( ) . BeOfValues ( true , true , false , false , false , false ) ;
8383
@@ -1330,55 +1330,55 @@ public void IndexNDArray_Set_Case1()
13301330 {
13311331 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13321332 a [ "1, :" ] = np . arange ( 4 ) ;
1333- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1333+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13341334 }
13351335
13361336 [ TestMethod ]
13371337 public void IndexNDArray_Set_Case2 ( )
13381338 {
13391339 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13401340 a [ 1 , np . arange ( 4 ) ] = np . arange ( 4 ) ;
1341- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1341+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13421342 }
13431343
13441344 [ TestMethod ]
13451345 public void IndexNDArray_Set_Case3 ( )
13461346 {
13471347 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13481348 a [ np . array ( 1 ) , np . arange ( 4 ) ] = np . arange ( 4 ) ;
1349- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1349+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13501350 }
13511351
13521352 [ TestMethod ]
13531353 public void IndexNDArray_Set_Case4 ( )
13541354 {
13551355 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13561356 a [ "1:2" , np . arange ( 4 ) ] = np . arange ( 4 ) ;
1357- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1357+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13581358 }
13591359
13601360 [ TestMethod ]
13611361 public void IndexNDArray_Set_Case5 ( )
13621362 {
13631363 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13641364 a [ "1:2" , Slice . All ] = np . arange ( 4 ) ;
1365- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1365+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13661366 }
13671367
13681368 [ TestMethod ]
13691369 public void IndexNDArray_Set_Case6 ( )
13701370 {
13711371 var a = np . arange ( 8 ) . reshape ( 2 , 4 ) ;
13721372 a [ Slice . Index ( 1 ) , Slice . All ] = np . arange ( 4 ) ;
1373- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
1373+ a . Should ( ) . BeShaped ( 2 , 4 ) . And . BeOfValues ( 0 , 1 , 2 , 3 , 0 , 1 , 2 , 3 ) ;
13741374 }
13751375
13761376 [ TestMethod ]
13771377 public void IndexNDArray_Set_Case7_Boolean ( )
13781378 {
13791379 var a = np . arange ( 8 ) ;
13801380 a [ true ] = 1 ;
1381- a . Should ( ) . AllValuesBe ( 8 ) . And . BeShaped ( 8 ) ;
1381+ a . Should ( ) . BeShaped ( 8 ) ;
13821382 }
13831383
13841384 [ TestMethod ]
0 commit comments