Exemple #1
0
        public void push()
        {
            var   path1 = new TPath("s1/s2/s3/t1");
            TPath path2 = path1.Push("top");

            path2.Locator.ShouldEqual("top/s1/s2/s3/t1");
        }
        public TPath GetPath()
        {
            var path = new TPath(Name);

            if (Parent != null)
            {
                path = path.Push(Parent.Name);
            }

            return(path);
        }