public void Identify_WithRepository_ReturnsRevSpec()
        {
            Repo.Init();
            WriteTextFileAndCommit(Repo, "test.txt", "dummy", "dummy", true);

            RevSpec hashViaLog      = Repo.Log().First().Revision;
            RevSpec hashViaIdentify = Repo.Identify();

            StringAssert.StartsWith(hashViaIdentify.ToString(), hashViaLog.ToString());
        }
Exemple #2
0
        public void ImplicitConversion_NumberToRevisions_ProducesCorrectRevisionsValue()
        {
            RevSpec revSpec = 42;

            Assert.That(revSpec.ToString(), Is.EqualTo("42"));
        }