Esempio n. 1
0
        public async Task DataConnectionCloseAsync([DataSources(false)] string context)
        {
            var db = new DataConnection(context);

            try
            {
                await db.GetTable <Parent>().ToListAsync();
            }
            finally
            {
                var tid = Thread.CurrentThread.ManagedThreadId;

                await db.CloseAsync();

                db.Dispose();

                if (tid == Thread.CurrentThread.ManagedThreadId)
                {
                    Assert.Inconclusive("Executed synchronously due to lack of async support or there were no underlying async operations");
                }
            }
        }