You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SQLite.Net.Tests/NotNullAttributeTest.cs
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -215,9 +215,7 @@ public void NotNullConstraintExceptionListsOffendingColumnsOnUpdate()
215
215
}
216
216
catch(Exceptionex)
217
217
{
218
-
Assert.Fail(
219
-
"Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {0} was thrown instead.",
220
-
ex.GetType().Name);
218
+
Assert.Fail($"Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {ex.GetType().Name} was thrown instead.");
221
219
}
222
220
Assert.Fail("Expected an exception of type NotNullConstraintViolationException to be thrown. No exception was thrown.");
223
221
}
@@ -252,9 +250,7 @@ public void InsertQueryWithNullThrowsException()
252
250
}
253
251
catch(Exceptionex)
254
252
{
255
-
Assert.Fail(
256
-
"Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {0} was thrown instead.",
257
-
ex.GetType().Name);
253
+
Assert.Fail($"Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {ex.GetType().Name} was thrown instead.");
258
254
}
259
255
}
260
256
Assert.Fail("Expected an exception of type NotNullConstraintViolationException to be thrown. No exception was thrown.");
@@ -291,7 +287,7 @@ public void UpdateQueryWithNullThrowsException()
291
287
}
292
288
catch(Exceptionex)
293
289
{
294
-
Assert.Fail("Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {0} was thrown instead.",ex.GetType().Name);
290
+
Assert.Fail($"Expected an exception of type NotNullConstraintViolationException to be thrown. An exception of type {ex.GetType().Name} was thrown instead.");
295
291
}
296
292
Assert.Fail("Expected an exception of type NotNullConstraintViolationException to be thrown. No exception was thrown.");
0 commit comments