Beispiel #1
0
        public virtual 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);

            NUnit.Framework.Assert.AreNotSame(a, r);
            NUnit.Framework.Assert.IsFalse(r.IsWildcard());
            NUnit.Framework.Assert.AreEqual(src, r.GetSource());
            NUnit.Framework.Assert.AreEqual(dst, r.GetDestination());
        }
Beispiel #2
0
		public virtual 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);
			NUnit.Framework.Assert.AreNotSame(a, r);
			NUnit.Framework.Assert.IsFalse(r.IsWildcard());
			NUnit.Framework.Assert.AreEqual(src, r.GetSource());
			NUnit.Framework.Assert.AreEqual(dst, r.GetDestination());
		}