File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Orm/Xtensive.Orm.Tests.Sql Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,9 @@ protected override void TestFixtureSetUp()
5050
5151 protected override void TestFixtureTearDown ( )
5252 {
53- if ( Connection . UnderlyingConnection != null && Connection . State != System . Data . ConnectionState . Open ) {
53+ if ( Connection is null )
54+ return ;
55+ if ( Connection . State != System . Data . ConnectionState . Open ) {
5456 base . TestFixtureTearDown ( ) ;
5557 return ;
5658 }
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ public class ExtractorTest : SqlTest
2323
2424 protected override void TestFixtureTearDown ( )
2525 {
26+ if ( Connection is null )
27+ return ;
28+
2629 foreach ( var dropOperation in dropOperations ) {
2730 try {
2831 _ = ExecuteNonQuery ( dropOperation ) ;
You can’t perform that action at this time.
0 commit comments