Selective Sync now shows both server AND local folders
[pithos-ms-client] / trunk / Pithos.Client.WPF.Test / NodeTest.cs
index 3842eeb..55d487e 100644 (file)
@@ -219,7 +219,7 @@ namespace Pithos.Client.WPF.Test
                                  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();
@@ -286,5 +286,15 @@ namespace Pithos.Client.WPF.Test
                             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));
+        }
     }
 }