public async Task ClearTables_RemovesTableData() { const string testTableName = "testtable"; storageEm.Start(); await TestHelper.AddTestRowToTableAsync(testTableName); async Task <bool> TableContainsTestRow() => await TestHelper.TableExistsAndContainsTestRowAsync(testTableName); Assert.True(await TableContainsTestRow()); storageEm.ClearTables(); Assert.False(await TableContainsTestRow()); }
public void ClearTables_RemovesTableData() { const string TestTableName = "testtable"; _sut.Start(); TestHelper.AddTestRowToTable(TestTableName); Func <bool> tableContainsTestRow = () => TestHelper.TableExistsAndContainsTestRow(TestTableName); Assert.True(tableContainsTestRow()); _sut.ClearTables(); Assert.False(tableContainsTestRow()); }