public static async Task DumpSubspace([NotNull] IFdbDatabase db, [NotNull] IFdbSubspace subspace, CancellationToken ct)
        {
            Assert.That(db, Is.Not.Null);
            Assert.That(db.GlobalSpace.Contains(subspace.Key), Is.True, "Using a location outside of the test database partition!!! This is probably a bug in the test...");

            // do not log
            db = db.WithoutLogging();

            using (var tr = db.BeginTransaction(ct))
            {
                await DumpSubspace(tr, subspace).ConfigureAwait(false);
            }
        }
        public static async Task <FdbDirectorySubspace> GetCleanDirectory([NotNull] IFdbDatabase db, [NotNull] string[] path, CancellationToken ct)
        {
            Assert.That(db, Is.Not.Null, "null db");
            Assert.That(path, Is.Not.Null.And.Length.GreaterThan(0), "invalid path");

            // do not log
            db = db.WithoutLogging();

            // remove previous
            await db.Directory.TryRemoveAsync(path, ct);

            // create new
            var subspace = await db.Directory.CreateAsync(path, ct);

            Assert.That(subspace, Is.Not.Null);
            Assert.That(db.GlobalSpace.Contains(subspace.Key), Is.True);
            return(subspace);
        }