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 EnsureInitializedAsync_Throws_WhenNotInitialized()
 {
     var store = new ConcreteOfflineStore();
     await Assert.ThrowsAnyAsync <InvalidOperationException>(() => store.C_EnsureInitializedAsync());
 }