Skip to content

Commit a8af1fe

Browse files
fixup! 481c65b
1 parent d20e8c4 commit a8af1fe

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/NHibernate.Test/Async/NHSpecificTest/GH2750/FixtureByCode.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ protected override void OnTearDown()
5252
[Test]
5353
public async Task ShouldWorkWithOuterSystemTransactionAsync()
5454
{
55+
if (!Sfi.ConnectionProvider.Driver.SupportsSystemTransactions)
56+
Assert.Ignore("System.Transactions support is required by this test");
57+
5558
const int count = 3;
5659
var entities = new List<TestEntity>(count);
5760
for (var i = 0; i < count; i++)
@@ -83,6 +86,9 @@ public async Task ShouldWorkWithOuterSystemTransactionAsync()
8386
[Test]
8487
public async Task ShouldWorkWithInnerSystemTransactionAsync()
8588
{
89+
if (!Sfi.ConnectionProvider.Driver.SupportsSystemTransactions)
90+
Assert.Ignore("System.Transactions support is required by this test");
91+
8692
const int count = 3;
8793
var entities = new List<TestEntity>(count);
8894
for (var i = 0; i < count; i++)

src/NHibernate.Test/NHSpecificTest/GH2750/FixtureByCode.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ protected override void OnTearDown()
4040
[Test]
4141
public void ShouldWorkWithOuterSystemTransaction()
4242
{
43+
if (!Sfi.ConnectionProvider.Driver.SupportsSystemTransactions)
44+
Assert.Ignore("System.Transactions support is required by this test");
45+
4346
const int count = 3;
4447
var entities = new List<TestEntity>(count);
4548
for (var i = 0; i < count; i++)
@@ -71,6 +74,9 @@ public void ShouldWorkWithOuterSystemTransaction()
7174
[Test]
7275
public void ShouldWorkWithInnerSystemTransaction()
7376
{
77+
if (!Sfi.ConnectionProvider.Driver.SupportsSystemTransactions)
78+
Assert.Ignore("System.Transactions support is required by this test");
79+
7480
const int count = 3;
7581
var entities = new List<TestEntity>(count);
7682
for (var i = 0; i < count; i++)

0 commit comments

Comments
 (0)