@@ -116,7 +116,7 @@ public void CanInsertRow(TestMatrix testMatrix)
116116 }
117117
118118 // Invalid
119- Assert . That ( ( ) => matrix . InsertRow ( 0 , default ( Vector < T > ) ) , Throws . Exception ) ;
119+ Assert . That ( ( ) => matrix . InsertRow ( 0 , default ) , Throws . Exception ) ;
120120 Assert . That ( ( ) => matrix . InsertRow ( - 1 , Vector < T > . Build . Dense ( matrix . ColumnCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
121121 Assert . That ( ( ) => matrix . InsertRow ( matrix . RowCount + 1 , Vector < T > . Build . Dense ( matrix . ColumnCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
122122 Assert . That ( ( ) => matrix . InsertRow ( 0 , Vector < T > . Build . Dense ( matrix . ColumnCount - 1 ) ) , Throws . ArgumentException ) ;
@@ -178,7 +178,7 @@ public void CanInsertColumn(TestMatrix testMatrix)
178178 }
179179
180180 // Invalid
181- Assert . That ( ( ) => matrix . InsertColumn ( 0 , default ( Vector < T > ) ) , Throws . Exception ) ;
181+ Assert . That ( ( ) => matrix . InsertColumn ( 0 , default ) , Throws . Exception ) ;
182182 Assert . That ( ( ) => matrix . InsertColumn ( - 1 , Vector < T > . Build . Dense ( matrix . RowCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
183183 Assert . That ( ( ) => matrix . InsertColumn ( matrix . ColumnCount + 1 , Vector < T > . Build . Dense ( matrix . RowCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
184184 Assert . That ( ( ) => matrix . InsertColumn ( 0 , Vector < T > . Build . Dense ( matrix . RowCount - 1 ) ) , Throws . ArgumentException ) ;
@@ -231,7 +231,7 @@ public void CanAppend(TestMatrix leftTestMatrix, TestMatrix rightTestMatrix)
231231 }
232232
233233 // Invalid
234- Assert . That ( ( ) => left . Append ( default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
234+ Assert . That ( ( ) => left . Append ( default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
235235 }
236236
237237 [ Theory ]
@@ -255,7 +255,7 @@ public void CanAppendIntoResult(TestMatrix leftTestMatrix, TestMatrix rightTestM
255255 }
256256
257257 // Invalid
258- Assert . That ( ( ) => left . Append ( right , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
258+ Assert . That ( ( ) => left . Append ( right , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
259259 Assert . That ( ( ) => left . Append ( right , Matrix < T > . Build . Dense ( left . RowCount + 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
260260 Assert . That ( ( ) => left . Append ( right , Matrix < T > . Build . Dense ( left . RowCount - 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
261261 Assert . That ( ( ) => left . Append ( right , Matrix < T > . Build . Dense ( left . RowCount , left . ColumnCount + right . ColumnCount + 1 ) ) , Throws . ArgumentException ) ;
@@ -284,7 +284,7 @@ public void CanStack(TestMatrix topTestMatrix, TestMatrix bottomTestMatrix)
284284 }
285285
286286 // Invalid
287- Assert . That ( ( ) => top . Stack ( default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
287+ Assert . That ( ( ) => top . Stack ( default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
288288 }
289289
290290 [ Theory ]
@@ -308,7 +308,7 @@ public void CanStackIntoResult(TestMatrix topTestMatrix, TestMatrix bottomTestMa
308308 }
309309
310310 // Invalid
311- Assert . That ( ( ) => top . Stack ( bottom , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
311+ Assert . That ( ( ) => top . Stack ( bottom , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
312312 Assert . That ( ( ) => top . Stack ( bottom , Matrix < T > . Build . Dense ( top . RowCount + bottom . RowCount + 1 , top . ColumnCount ) ) , Throws . ArgumentException ) ;
313313 Assert . That ( ( ) => top . Stack ( bottom , Matrix < T > . Build . Dense ( top . RowCount + bottom . RowCount - 1 , top . ColumnCount ) ) , Throws . ArgumentException ) ;
314314 Assert . That ( ( ) => top . Stack ( bottom , Matrix < T > . Build . Dense ( top . RowCount + bottom . RowCount , top . ColumnCount + 1 ) ) , Throws . ArgumentException ) ;
@@ -341,7 +341,7 @@ public void CanDiagonalStack(TestMatrix leftTestMatrix, TestMatrix rightTestMatr
341341 }
342342
343343 // Invalid
344- Assert . That ( ( ) => left . DiagonalStack ( default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) , "{0}+{1}->{2}" , left . GetType ( ) , right . GetType ( ) , result . GetType ( ) ) ;
344+ Assert . That < Matrix < T > > ( ( ) => left . DiagonalStack ( default ) , Throws . InstanceOf < ArgumentNullException > ( ) , "{0}+{1}->{2}" , left . GetType ( ) , right . GetType ( ) , result . GetType ( ) ) ;
345345 }
346346
347347 [ Theory ]
@@ -371,7 +371,7 @@ public void CanDiagonalStackIntoResult(TestMatrix leftTestMatrix, TestMatrix rig
371371 }
372372
373373 // Invalid
374- Assert . That ( ( ) => left . DiagonalStack ( right , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
374+ Assert . That ( ( ) => left . DiagonalStack ( right , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
375375 Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount + 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
376376 Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount - 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
377377 Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount , left . ColumnCount + right . ColumnCount + 1 ) ) , Throws . ArgumentException ) ;
0 commit comments