Ejemplo n.º 1
0
        /// <summary>
        /// Concatenates two path atoms together, returning a new path atom.
        /// </summary>
        public PathAtom Concat(PathAtom atom, PathAtom addition)
        {
            Contract.Requires(atom.IsValid);
            Contract.Requires(addition.IsValid);

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

            PathAtom a1 = PathAtom.Create(st, "AAA");
            PathAtom a2 = PathAtom.Create(st, "BBB");
            PathAtom a3 = a1.Concat(st, a2);

            XAssert.AreEqual("AAABBB", a3.ToString(st));
        }