Skip to content

Commit b7ba1db

Browse files
committed
Assertion argument correction
1 parent 97503eb commit b7ba1db

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

QueryDB.Core.Tests/MSSQLTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ public void Test_MSSQL_ExecuteCommand_DML_Unsupported_SELECT_Queries()
418418
}
419419
catch (QueryDBException ex)
420420
{
421-
Assert.AreEqual(ex.Message, "SELECT queries are not supported here.");
422-
Assert.AreEqual(ex.ErrorType, "UnsupportedCommand");
423-
Assert.AreEqual(ex.AdditionalInfo, "'ExecuteCommand' doesn't support SELECT queries.");
421+
Assert.AreEqual("SELECT queries are not supported here.", ex.Message);
422+
Assert.AreEqual("UnsupportedCommand", ex.ErrorType);
423+
Assert.AreEqual("'ExecuteCommand' doesn't support SELECT queries.", ex.AdditionalInfo);
424424
}
425425
}
426426

QueryDB.Core.Tests/MySQLTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ public void Test_MySQL_ExecuteCommand_DML_Unsupported_SELECT_Queries()
398398
}
399399
catch (QueryDBException ex)
400400
{
401-
Assert.AreEqual(ex.Message, "SELECT queries are not supported here.");
402-
Assert.AreEqual(ex.ErrorType, "UnsupportedCommand");
403-
Assert.AreEqual(ex.AdditionalInfo, "'ExecuteCommand' doesn't support SELECT queries.");
401+
Assert.AreEqual("SELECT queries are not supported here.", ex.Message);
402+
Assert.AreEqual("UnsupportedCommand", ex.ErrorType);
403+
Assert.AreEqual("'ExecuteCommand' doesn't support SELECT queries.", ex.AdditionalInfo);
404404
}
405405
}
406406

QueryDB.Core.Tests/OracleTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,9 @@ public void Test_Oracle_ExecuteCommand_DML_Unsupported_SELECT_Queries()
400400
}
401401
catch (QueryDBException ex)
402402
{
403-
Assert.AreEqual(ex.Message, "SELECT queries are not supported here.");
404-
Assert.AreEqual(ex.ErrorType, "UnsupportedCommand");
405-
Assert.AreEqual(ex.AdditionalInfo, "'ExecuteCommand' doesn't support SELECT queries.");
403+
Assert.AreEqual("SELECT queries are not supported here.", ex.Message);
404+
Assert.AreEqual("UnsupportedCommand", ex.ErrorType);
405+
Assert.AreEqual("'ExecuteCommand' doesn't support SELECT queries.", ex.AdditionalInfo);
406406
}
407407
}
408408

QueryDB.Core.Tests/PostgreSQLTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,9 @@ public void Test_PostgreSQL_ExecuteCommand_DML_Unsupported_SELECT_Queries()
392392
}
393393
catch (QueryDBException ex)
394394
{
395-
Assert.AreEqual(ex.Message, "SELECT queries are not supported here.");
396-
Assert.AreEqual(ex.ErrorType, "UnsupportedCommand");
397-
Assert.AreEqual(ex.AdditionalInfo, "'ExecuteCommand' doesn't support SELECT queries.");
395+
Assert.AreEqual("SELECT queries are not supported here.", ex.Message);
396+
Assert.AreEqual("UnsupportedCommand", ex.ErrorType);
397+
Assert.AreEqual("'ExecuteCommand' doesn't support SELECT queries.", ex.AdditionalInfo);
398398
}
399399
}
400400

0 commit comments

Comments
 (0)