Esempio n. 1
0
        /// <summary>
        /// Concatenates a path atom to the end of a relative path, returning a new relative path.
        /// </summary>
        public RelativePath Concat(RelativePath path, PathAtom addition)
        {
            Contract.Requires(path.IsValid);
            Contract.Requires(addition.IsValid);

            return(path.Concat(m_stringTable, addition));
        }
Esempio n. 2
0
        public void Concat()
        {
            var st = new StringTable(0);

            RelativePath rp  = RelativePath.Create(st, @"AAA\BBB");
            PathAtom     p1  = PathAtom.Create(st, "XXX");
            RelativePath rp2 = rp.Concat(st, p1);

            XAssert.AreEqual(@"AAA\BBBXXX", rp2.ToString(st));
        }