File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Async/NHSpecificTest/GH2750 Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,9 @@ protected override void OnTearDown()
52
52
[ Test ]
53
53
public async Task ShouldWorkWithOuterSystemTransactionAsync ( )
54
54
{
55
+ if ( ! Sfi . ConnectionProvider . Driver . SupportsSystemTransactions )
56
+ Assert . Ignore ( "System.Transactions support is required by this test" ) ;
57
+
55
58
const int count = 3 ;
56
59
var entities = new List < TestEntity > ( count ) ;
57
60
for ( var i = 0 ; i < count ; i ++ )
@@ -83,6 +86,9 @@ public async Task ShouldWorkWithOuterSystemTransactionAsync()
83
86
[ Test ]
84
87
public async Task ShouldWorkWithInnerSystemTransactionAsync ( )
85
88
{
89
+ if ( ! Sfi . ConnectionProvider . Driver . SupportsSystemTransactions )
90
+ Assert . Ignore ( "System.Transactions support is required by this test" ) ;
91
+
86
92
const int count = 3 ;
87
93
var entities = new List < TestEntity > ( count ) ;
88
94
for ( var i = 0 ; i < count ; i ++ )
Original file line number Diff line number Diff line change @@ -40,6 +40,9 @@ protected override void OnTearDown()
40
40
[ Test ]
41
41
public void ShouldWorkWithOuterSystemTransaction ( )
42
42
{
43
+ if ( ! Sfi . ConnectionProvider . Driver . SupportsSystemTransactions )
44
+ Assert . Ignore ( "System.Transactions support is required by this test" ) ;
45
+
43
46
const int count = 3 ;
44
47
var entities = new List < TestEntity > ( count ) ;
45
48
for ( var i = 0 ; i < count ; i ++ )
@@ -71,6 +74,9 @@ public void ShouldWorkWithOuterSystemTransaction()
71
74
[ Test ]
72
75
public void ShouldWorkWithInnerSystemTransaction ( )
73
76
{
77
+ if ( ! Sfi . ConnectionProvider . Driver . SupportsSystemTransactions )
78
+ Assert . Ignore ( "System.Transactions support is required by this test" ) ;
79
+
74
80
const int count = 3 ;
75
81
var entities = new List < TestEntity > ( count ) ;
76
82
for ( var i = 0 ; i < count ; i ++ )
You can’t perform that action at this time.
0 commit comments