ADOUtils.Tests.TransactionTest.Should_rollback_when_disposing_and_no_calls_to_commit_or_rollback_made C# (CSharp) Method

Should_rollback_when_disposing_and_no_calls_to_commit_or_rollback_made() private method

        public void Should_rollback_when_disposing_and_no_calls_to_commit_or_rollback_made()
        {
            _target.Dispose();
            _target.Dispose();
            _target.Rollback();
            _target.Rollback();
            _target.Commit();
            _target.Commit();

            _commitCount.Should().Be.EqualTo(0);
            _rollbackCount.Should().Be.EqualTo(1);
            _connection.Verify(x => x.Close(), Times.Once());
        }