public virtual void TestSplitting()
        {
            NUnit.Framework.Assert.AreEqual(1, RegistryPathUtils.Split("/a").Count);
            NUnit.Framework.Assert.AreEqual(0, RegistryPathUtils.Split("/").Count);
            NUnit.Framework.Assert.AreEqual(3, RegistryPathUtils.Split("/a/b/c").Count);
            NUnit.Framework.Assert.AreEqual(3, RegistryPathUtils.Split("/a/b/c/").Count);
            NUnit.Framework.Assert.AreEqual(3, RegistryPathUtils.Split("a/b/c").Count);
            NUnit.Framework.Assert.AreEqual(3, RegistryPathUtils.Split("/a/b//c").Count);
            NUnit.Framework.Assert.AreEqual(3, RegistryPathUtils.Split("//a/b/c/").Count);
            IList <string> split = RegistryPathUtils.Split("//a/b/c/");

            NUnit.Framework.Assert.AreEqual("a", split[0]);
            NUnit.Framework.Assert.AreEqual("b", split[1]);
            NUnit.Framework.Assert.AreEqual("c", split[2]);
        }
 public virtual void TestSplittingEmpty()
 {
     NUnit.Framework.Assert.AreEqual(0, RegistryPathUtils.Split(string.Empty).Count);
     NUnit.Framework.Assert.AreEqual(0, RegistryPathUtils.Split("/").Count);
     NUnit.Framework.Assert.AreEqual(0, RegistryPathUtils.Split("///").Count);
 }