Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf085005

Browse files
committed
Separated Assert.Throws call
1 parent29a3fa4 commitf085005

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/Microsoft.Data.SqlClient/tests/ManualTests/ProviderAgnostic/MultipleResultsTest/MultipleResultsTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public void ExecuteNonQuery()
6060
command.CommandText=s_sqlStatement;
6161

6262
// ExecuteNonQuery will drain every result set, info message and exception, collating these into a single exception.
63-
SqlExceptionexNonQuery=Assert.Throws<SqlException>(()=>command.ExecuteNonQuery());
63+
Func<object>testCode=()=>command.ExecuteNonQuery();
64+
SqlExceptionexNonQuery=Assert.Throws<SqlException>(testCode);
6465

6566
stringexpectedInfoMessages=string.Join(Environment.NewLine,
6667
ResultSet2_Error,ResultSet4_Error,ResultSet6_Error,ResultSet8_Error,ResultSet10_Error,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp