Exemplo n.º 1
0
        public void PopulateFromMinimallySpecifiedXml()
        {
            string xml = @"
<git>
    <repository>c:\git\ccnet\mygitrepo</repository>
</git>";

            git = (ThoughtWorks.CruiseControl.Core.Sourcecontrol.git)NetReflector.Read(xml);
        }
Exemplo n.º 2
0
        public void PopulateFromFullySpecifiedXml()
        {
            string xml = @"
<git>
	<executable>git</executable>
	<repository>c:\git\ccnet\mygitrepo</repository>
	<branch>master</branch>
	<timeout>5</timeout>
	<workingDirectory>c:\git\working</workingDirectory>
	<tagOnSuccess>true</tagOnSuccess>
	<autoGetSource>true</autoGetSource>
</git>";

            git = (ThoughtWorks.CruiseControl.Core.Sourcecontrol.git)NetReflector.Read(xml);
            Assert.AreEqual(@"git", git.Executable);
            Assert.AreEqual(@"c:\git\ccnet\mygitrepo", git.Repository);
            Assert.AreEqual(@"master", git.Branch);
            Assert.AreEqual(new Timeout(5), git.Timeout);
            Assert.AreEqual(@"c:\git\working", git.WorkingDirectory);
            Assert.AreEqual(true, git.TagOnSuccess);
            Assert.AreEqual(true, git.AutoGetSource);
        }
Exemplo n.º 3
0
 private void setupGit(IFileSystem filesystem)
 {
     git                  = new ThoughtWorks.CruiseControl.Core.Sourcecontrol.git((IHistoryParser)mockHistoryParser.MockInstance, (ProcessExecutor)mockProcessExecutor.MockInstance, filesystem);
     git.Repository       = @"xyz.git";
     git.WorkingDirectory = DefaultWorkingDirectory;
 }
Exemplo n.º 4
0
        public void PopulateFromFullySpecifiedXml() 
        {
            string xml = @"
<git>
	<executable>git</executable>
	<repository>c:\git\ccnet\mygitrepo</repository>
	<branch>master</branch>
	<timeout>5</timeout>
	<workingDirectory>c:\git\working</workingDirectory>
	<tagOnSuccess>true</tagOnSuccess>
	<autoGetSource>true</autoGetSource>
</git>";

            git = (ThoughtWorks.CruiseControl.Core.Sourcecontrol.git)NetReflector.Read(xml);
            Assert.AreEqual(@"git", git.Executable);
            Assert.AreEqual(@"c:\git\ccnet\mygitrepo", git.Repository);
            Assert.AreEqual(@"master", git.Branch);
            Assert.AreEqual(new Timeout(5), git.Timeout);
            Assert.AreEqual(@"c:\git\working", git.WorkingDirectory);
            Assert.AreEqual(true, git.TagOnSuccess);
            Assert.AreEqual(true, git.AutoGetSource);
        }
Exemplo n.º 5
0
 private void setupGit(IFileSystem filesystem) 
 {
     git = new ThoughtWorks.CruiseControl.Core.Sourcecontrol.git((IHistoryParser)mockHistoryParser.MockInstance, (ProcessExecutor)mockProcessExecutor.MockInstance, filesystem);
     git.Repository = @"xyz.git";
     git.WorkingDirectory = DefaultWorkingDirectory;
 }
Exemplo n.º 6
0
        public void PopulateFromMinimallySpecifiedXml() 
        {
            string xml = @"
<git>
    <repository>c:\git\ccnet\mygitrepo</repository>
</git>";
            git = (ThoughtWorks.CruiseControl.Core.Sourcecontrol.git)NetReflector.Read(xml);
        }