Exemplo n.º 1
0
        public void HgGetChangeSetReturnsNullIfIdDoesNotExist()
        {
            // Arrange
            using (TestRepository testRepository = GetRepository())
            {
                var hgRepo = new HgRepository(testRepository.PhysicalPath, "", new MockDeploymentSettingsManager(), NullTracerFactory.Instance);
                hgRepo.Initialize();

                // Act
                var changeset = hgRepo.GetChangeSet("does-not-exist");

                // Assert
                Assert.Null(changeset);
            }
        }