@@ -64,49 +64,49 @@ public async Task FInfo_Decimal_AllProperties()
6464 [ TestMethod ]
6565 public async Task FInfo_Int32_Throws ( )
6666 {
67- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( NPTypeCode . Int32 ) ) ;
67+ new Action ( ( ) => np . finfo ( NPTypeCode . Int32 ) ) . Should ( ) . Throw < Exception > ( ) ;
6868 }
6969
7070 [ TestMethod ]
7171 public async Task FInfo_Boolean_Throws ( )
7272 {
73- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( NPTypeCode . Boolean ) ) ;
73+ new Action ( ( ) => np . finfo ( NPTypeCode . Boolean ) ) . Should ( ) . Throw < Exception > ( ) ;
7474 }
7575
7676 [ TestMethod ]
7777 public async Task FInfo_Byte_Throws ( )
7878 {
79- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( NPTypeCode . Byte ) ) ;
79+ new Action ( ( ) => np . finfo ( NPTypeCode . Byte ) ) . Should ( ) . Throw < Exception > ( ) ;
8080 }
8181
8282 [ TestMethod ]
8383 public async Task FInfo_Empty_Throws ( )
8484 {
85- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( NPTypeCode . Empty ) ) ;
85+ new Action ( ( ) => np . finfo ( NPTypeCode . Empty ) ) . Should ( ) . Throw < Exception > ( ) ;
8686 }
8787
8888 [ TestMethod ]
8989 public async Task FInfo_NullType_Throws ( )
9090 {
91- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( ( Type ) null ! ) ) ;
91+ new Action ( ( ) => np . finfo ( ( Type ) null ! ) ) . Should ( ) . Throw < Exception > ( ) ;
9292 }
9393
9494 [ TestMethod ]
9595 public async Task FInfo_NullArray_Throws ( )
9696 {
97- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( ( NDArray ) null ! ) ) ;
97+ new Action ( ( ) => np . finfo ( ( NDArray ) null ! ) ) . Should ( ) . Throw < Exception > ( ) ;
9898 }
9999
100100 [ TestMethod ]
101101 public async Task FInfo_EmptyDtypeString_Throws ( )
102102 {
103- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( "" ) ) ;
103+ new Action ( ( ) => np . finfo ( "" ) ) . Should ( ) . Throw < Exception > ( ) ;
104104 }
105105
106106 [ TestMethod ]
107107 public async Task FInfo_InvalidDtypeString_Throws ( )
108108 {
109- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( "int32" ) ) ;
109+ new Action ( ( ) => np . finfo ( "int32" ) ) . Should ( ) . Throw < Exception > ( ) ;
110110 }
111111
112112 #endregion
@@ -139,7 +139,7 @@ public async Task FInfo_Generic_Decimal()
139139 [ TestMethod ]
140140 public async Task FInfo_Generic_Int_Throws ( )
141141 {
142- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo < int > ( ) ) ;
142+ new Action ( ( ) => np . finfo < int > ( ) ) . Should ( ) . Throw < Exception > ( ) ;
143143 }
144144
145145 #endregion
@@ -166,7 +166,7 @@ public async Task FInfo_NDArray_Float64()
166166 public async Task FInfo_NDArray_Int_Throws ( )
167167 {
168168 var arr = np . array ( new int [ ] { 1 , 2 , 3 } ) ;
169- Microsoft . VisualStudio . TestTools . UnitTesting . Assert . ThrowsException < Exception > ( ( ) => np . finfo ( arr ) ) ;
169+ new Action ( ( ) => np . finfo ( arr ) ) . Should ( ) . Throw < Exception > ( ) ;
170170 }
171171
172172 #endregion
0 commit comments