File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -946,11 +946,11 @@ public void LoadObject_ThrowsOnRequiredLoadObject()
946946 Directory . CreateDirectory ( directory ) ;
947947
948948 File . WriteAllText ( path : file , contents : "" ) ;
949- Assert . Throws < InvalidOperationException > ( ( ) => IOUtil . LoadObject < RunnerSettings > ( file , true ) ) ;
949+ Assert . Throws < ArgumentNullException > ( ( ) => IOUtil . LoadObject < RunnerSettings > ( file , true ) ) ;
950950
951951 file = Path . Combine ( directory , "invalid type file" ) ;
952952 File . WriteAllText ( path : file , contents : " " ) ;
953- Assert . Throws < InvalidDataException > ( ( ) => IOUtil . LoadObject < RunnerSettings > ( file , true ) ) ;
953+ Assert . Throws < ArgumentException > ( ( ) => IOUtil . LoadObject < RunnerSettings > ( file , true ) ) ;
954954
955955 // Cleanup.
956956 if ( Directory . Exists ( directory ) )
You can’t perform that action at this time.
0 commit comments