@@ -116,7 +116,7 @@ public void CanInsertRow(TestMatrix testMatrix)
116
116
}
117
117
118
118
// Invalid
119
- Assert . That ( ( ) => matrix . InsertRow ( 0 , default ( Vector < T > ) ) , Throws . Exception ) ;
119
+ Assert . That ( ( ) => matrix . InsertRow ( 0 , default ) , Throws . Exception ) ;
120
120
Assert . That ( ( ) => matrix . InsertRow ( - 1 , Vector < T > . Build . Dense ( matrix . ColumnCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
121
121
Assert . That ( ( ) => matrix . InsertRow ( matrix . RowCount + 1 , Vector < T > . Build . Dense ( matrix . ColumnCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
122
122
Assert . That ( ( ) => matrix . InsertRow ( 0 , Vector < T > . Build . Dense ( matrix . ColumnCount - 1 ) ) , Throws . ArgumentException ) ;
@@ -178,7 +178,7 @@ public void CanInsertColumn(TestMatrix testMatrix)
178
178
}
179
179
180
180
// Invalid
181
- Assert . That ( ( ) => matrix . InsertColumn ( 0 , default ( Vector < T > ) ) , Throws . Exception ) ;
181
+ Assert . That ( ( ) => matrix . InsertColumn ( 0 , default ) , Throws . Exception ) ;
182
182
Assert . That ( ( ) => matrix . InsertColumn ( - 1 , Vector < T > . Build . Dense ( matrix . RowCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
183
183
Assert . That ( ( ) => matrix . InsertColumn ( matrix . ColumnCount + 1 , Vector < T > . Build . Dense ( matrix . RowCount ) ) , Throws . InstanceOf < ArgumentOutOfRangeException > ( ) ) ;
184
184
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)
231
231
}
232
232
233
233
// Invalid
234
- Assert . That ( ( ) => left . Append ( default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
234
+ Assert . That ( ( ) => left . Append ( default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
235
235
}
236
236
237
237
[ Theory ]
@@ -255,7 +255,7 @@ public void CanAppendIntoResult(TestMatrix leftTestMatrix, TestMatrix rightTestM
255
255
}
256
256
257
257
// Invalid
258
- Assert . That ( ( ) => left . Append ( right , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
258
+ Assert . That ( ( ) => left . Append ( right , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
259
259
Assert . That ( ( ) => left . Append ( right , Matrix < T > . Build . Dense ( left . RowCount + 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
260
260
Assert . That ( ( ) => left . Append ( right , Matrix < T > . Build . Dense ( left . RowCount - 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
261
261
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)
284
284
}
285
285
286
286
// Invalid
287
- Assert . That ( ( ) => top . Stack ( default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
287
+ Assert . That ( ( ) => top . Stack ( default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
288
288
}
289
289
290
290
[ Theory ]
@@ -308,7 +308,7 @@ public void CanStackIntoResult(TestMatrix topTestMatrix, TestMatrix bottomTestMa
308
308
}
309
309
310
310
// Invalid
311
- Assert . That ( ( ) => top . Stack ( bottom , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
311
+ Assert . That ( ( ) => top . Stack ( bottom , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
312
312
Assert . That ( ( ) => top . Stack ( bottom , Matrix < T > . Build . Dense ( top . RowCount + bottom . RowCount + 1 , top . ColumnCount ) ) , Throws . ArgumentException ) ;
313
313
Assert . That ( ( ) => top . Stack ( bottom , Matrix < T > . Build . Dense ( top . RowCount + bottom . RowCount - 1 , top . ColumnCount ) ) , Throws . ArgumentException ) ;
314
314
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
341
341
}
342
342
343
343
// 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 ( ) ) ;
345
345
}
346
346
347
347
[ Theory ]
@@ -371,7 +371,7 @@ public void CanDiagonalStackIntoResult(TestMatrix leftTestMatrix, TestMatrix rig
371
371
}
372
372
373
373
// Invalid
374
- Assert . That ( ( ) => left . DiagonalStack ( right , default ( Matrix < T > ) ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
374
+ Assert . That ( ( ) => left . DiagonalStack ( right , default ) , Throws . InstanceOf < ArgumentNullException > ( ) ) ;
375
375
Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount + 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
376
376
Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount - 1 , left . ColumnCount + right . ColumnCount ) ) , Throws . ArgumentException ) ;
377
377
Assert . That ( ( ) => left . DiagonalStack ( right , Matrix < T > . Build . Dense ( left . RowCount + right . RowCount , left . ColumnCount + right . ColumnCount + 1 ) ) , Throws . ArgumentException ) ;
0 commit comments