Example #1
0
        public void testExpandFromDestination_Wildcard()
        {
            string  src = "refs/heads/master";
            string  dst = "refs/remotes/origin/master";
            RefSpec a   = new RefSpec("refs/heads/*:refs/remotes/origin/*");
            RefSpec r   = a.ExpandFromDestination(dst);

            Assert.AreNotSame(a, r);
            Assert.IsFalse(r.Wildcard);
            Assert.AreEqual(src, r.Source);
            Assert.AreEqual(dst, r.Destination);
        }