We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ea10bc commit c0b4ca3Copy full SHA for c0b4ca3
QueryDB.Core.Tests/QueryDBTests.cs
@@ -49,6 +49,21 @@ public void ExecuteTransaction_UnknownDB_ReturnsFalse()
49
Assert.IsFalse(result);
50
}
51
52
+ [TestMethod]
53
+ [TestCategory(DB_TESTS), TestCategory(UNKNOW_DB_TESTS)]
54
+ public async Task ExecuteTransactionAsync_UnknownDB_ReturnsFalse()
55
+ {
56
+ var sqlStatements = new List<string>
57
58
+ "DELETE FROM users"
59
+ };
60
+
61
+ var dbContext = new DBContext((DB)999, "some_invalid_connection_string");
62
+ var result = await dbContext.ExecuteTransactionAsync(sqlStatements);
63
64
+ Assert.IsFalse(result);
65
+ }
66
67
#endregion
68
69
0 commit comments