Exemplo n.º 1
0
        public void Push_IntoUnrelatedRepositoryWithForce_PushesSuccessfullyAndCreatesAnotherHead()
        {
            WriteTextFileAndCommit(Repo1, "test1.txt", "dummy", "dummy", true);
            WriteTextFileAndCommit(Repo2, "test2.txt", "dummy", "dummy", true);

            Repo2.Push(
                Repo1.Path, new PushCommand
            {
                Force = true,
            });

            Changeset[] log = Repo1.Heads().ToArray();

            Assert.That(log.Length, Is.EqualTo(2));
        }