Example #1
0
        public async Task EnsureInitializedAsync_DoesntThrow_WhenInitialized()
        {
            var store = new ConcreteOfflineStore();
            await store.InitializeAsync();

            await store.C_EnsureInitializedAsync();
        }
Example #2
0
        public async Task AbstractOfflineStore_CanDispose()
        {
            var store = new ConcreteOfflineStore();
            await store.InitializeAsync();

            store.Dispose();
        }
Example #3
0
        public async Task Initialize_DefinesSystemTables()
        {
            var store = new ConcreteOfflineStore();
            await store.InitializeAsync();

            Assert.True(store.isInitialized);
            foreach (var tableName in SystemTables.AllTables)
            {
                Assert.True(store.tableDefinitions.ContainsKey(tableName));
            }
        }