Пример #1
0
        public void GetRootOfRootDirectory()
        {
            IStorageDirectory directory = _client.GetDirectory(null).Result;

            Assert.AreEqual(directory.GetParent(), null);
            // Cleanup
        }
Пример #2
0
        public void CreateSubDirectory()
        {
            // Setup
            IStorageDirectory newDirectory = _client.CreateDirectory(null, Guid.NewGuid().ToString()).Result;
            // Test
            IStorageDirectory subDirectory = _client.CreateDirectory(newDirectory, "sub").Result;

            Assert.AreEqual(subDirectory.GetParent().Name, newDirectory.Name);
            Assert.AreEqual(newDirectory.GetDirectories().Single().Name, "sub");
            // Cleanup
        }