Esempio n. 1
0
        public void CreateDeleteTables()
        {
            var name = "n" + Guid.NewGuid().ToString("N");

            Assert.IsTrue(TableStorage.CreateTable(name), "#A01");
            Assert.IsFalse(TableStorage.CreateTable(name), "#A02");
            Assert.IsTrue(TableStorage.DeleteTable(name), "#A03");

            // replicating the test a 2nd time, to check for slow table deletion
            Assert.IsTrue(TableStorage.CreateTable(name), "#A04");
            Assert.IsTrue(TableStorage.DeleteTable(name), "#A05");

            Assert.IsFalse(TableStorage.DeleteTable(name), "#A06");

            const string name2 = "IamNotATable";

            Assert.IsFalse(TableStorage.DeleteTable(name2), "#A07");
        }