Example #1
0
        public void ShouldGetSourceWithAppropriateRevisionNumberIfTagOnSuccessTrueAndModificationsFound()
        {
            ExpectSvnDirectoryExists(true);
            ExpectToExecuteArguments(string.Format(@"update {0} --revision 10 --no-auth-cache --non-interactive", StringUtil.AutoDoubleQuoteString(DefaultWorkingDirectory)));

            IIntegrationResult result = IntegrationResult();
            Modification       mod    = new Modification();

            mod.ChangeNumber     = "10";
            svn.latestRevision   = 10;
            result.Modifications = new Modification[] { mod };
            svn.mods             = result.Modifications;

            svn.AutoGetSource = true;
            svn.GetSource(result);
        }