Exemplo n.º 1
0
        public void ShouldGetModificationsEvenWhenTrunkUrlIsNull()
        {
            svn.TrunkUrl = null;
            mockHistoryParser.ExpectAndReturn("Parse", new Modification[0], new IsAnything(), new IsAnything(), new IsAnything());
            ExpectToExecuteArguments("log -r \"{2001-01-21T20:00:00Z}:{2001-01-21T20:30:50Z}\" --verbose --xml --no-auth-cache --non-interactive");

            Modification[] modifications = svn.GetModifications(IntegrationResult(from), IntegrationResult(to));

            Assert.AreEqual(new Modification[0], modifications);
        }
Exemplo n.º 2
0
        public void ShouldGetModificationsEvenWhenTrunkUrlIsNull()
        {
            svn.TrunkUrl = null;
            mockHistoryParser.Setup(parser => parser.Parse(It.IsAny <TextReader>(), It.IsAny <DateTime>(), It.IsAny <DateTime>())).Returns(new Modification[0]).Verifiable();
            ExpectToExecuteArguments("log -r \"{2001-01-21T20:00:00Z}:{2001-01-21T20:30:50Z}\" --verbose --xml --no-auth-cache --non-interactive");

            Modification[] modifications = svn.GetModifications(IntegrationResult(from), IntegrationResult(to));

            Assert.AreEqual(new Modification[0], modifications);
        }