public void GetRootDirectory() { IStorageDirectory directory = _client.GetDirectory(null).Result; Assert.AreEqual(directory.Name, "cloudsnet"); // Cleanup }
public void CreateFileInRoot() { IStorageDirectory directory = client.GetDirectory(null).Result; MemoryStream ms = new MemoryStream(Encoding.Default.GetBytes("this is a test")); // Create a new random named file client.CreateFile(directory, Guid.NewGuid().ToString(), ms).Wait(); Assert.AreEqual(directory.GetFiles().Count(), 1); }