Esempio n. 1
0
        public virtual void TestSetSource()
        {
            RefSpec a = new RefSpec();
            RefSpec b = a.SetSource("refs/heads/master");

            NUnit.Framework.Assert.AreNotSame(a, b);
            NUnit.Framework.Assert.AreEqual("HEAD", a.ToString());
            NUnit.Framework.Assert.AreEqual("refs/heads/master", b.ToString());
        }
Esempio n. 2
0
		public virtual void TestSetSource()
		{
			RefSpec a = new RefSpec();
			RefSpec b = a.SetSource("refs/heads/master");
			NUnit.Framework.Assert.AreNotSame(a, b);
			NUnit.Framework.Assert.AreEqual("HEAD", a.ToString());
			NUnit.Framework.Assert.AreEqual("refs/heads/master", b.ToString());
		}