new ObjectInfo {Account = account, Container = container, Name = "File03"}
};
- var tree = source.ToTree();
+ var tree = source. ToTree();
var allNodes = (from DirectoryRecord root in tree
from DirectoryRecord record in root
select record).ToList();
select record).ToList();
Assert.That(allNodes.Count,Is.EqualTo(9));
}
+
+ [Test]
+ public void TestUri()
+ {
+ var storageUri = new Uri("http://pithos.okeanos.grnet.gr/v1/pkanavos@gmail.com");
+ var uri = new Uri(storageUri, "pithos");
+
+ var expected = new Uri("http://pithos.okeanos.grnet.gr/v1/pkanavos@gmail.com/pithos");
+ Assert.That(uri, Is.EqualTo(expected));
+ }
}
}