示例#1
0
        public async Task DeleteTable_CreateAndDelete_BackToPreviousState()
        {
            int tableNo1 = (await _tables.ListTableNamesAsync()).Count();

            await _tables.InsertAsync(_tableName, new[] { new TableRow("pk", "rk") });

            int tableNo2 = (await _tables.ListTableNamesAsync()).Count();

            Assert.Equal(tableNo1 + 1, tableNo2);

            await _tables.DeleteAsync(_tableName);

            int tableNo3 = (await _tables.ListTableNamesAsync()).Count();

            Assert.Equal(tableNo3, tableNo1);
        }