Skip to content

Commit 0540ec7

Browse files
committed
Result update
1 parent 1c968ca commit 0540ec7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Frends.MicrosoftSQL.BulkInsert/Frends.MicrosoftSQL.BulkInsert.Tests/ExceptionUnitTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public async Task TestBulkInsert_Invalid_Creds()
4343
};
4444

4545
var ex = await Assert.ThrowsExceptionAsync<Exception>(() => MicrosoftSQL.BulkInsert(input, options, default));
46-
Assert.IsTrue(ex.InnerException != null && ex.InnerException.Message.Contains("Login failed for user 'SA'."));
46+
Assert.IsNotNull(ex.InnerException);
47+
Assert.IsTrue(ex.InnerException.Message.Contains("Login failed for user 'SA'."));
4748
}
4849

4950
[TestMethod]

0 commit comments

Comments
 (0)