Esempio n. 1
0
        public void PopulateFromFullySpecifiedXml()
        {
            const string xml = @"
            <hg>
            <executable>c:\Python25\Scripts\hg.bat</executable>
            <repo>c:\hg\ccnet\myhgrepo</repo>
            <timeout>5</timeout>
            <workingDirectory>c:\hg\working</workingDirectory>
            <tagOnSuccess>true</tagOnSuccess>
            <autoGetSource>true</autoGetSource>
            <branch>trunk</branch>
            </hg>";

            hg = (CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial) NetReflector.Read(xml);
            Assert.AreEqual(@"c:\Python25\Scripts\hg.bat", hg.Executable);
            Assert.AreEqual(@"c:\hg\ccnet\myhgrepo", hg.Repo);
            Assert.AreEqual(new Timeout(5), hg.Timeout);
            Assert.AreEqual(@"c:\hg\working", hg.WorkingDirectory);
            Assert.AreEqual(true, hg.TagOnSuccess);
            Assert.AreEqual(true, hg.AutoGetSource);
            Assert.AreEqual("trunk", hg.Branch);
        }
Esempio n. 2
0
 public void PopulateFromMinimallySpecifiedXml()
 {
     const string xml = @"<hg/>";
     hg = (CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial) NetReflector.Read(xml);
 }
Esempio n. 3
0
 private void setupHg(IFileSystem filesystem)
 {
     hg = new CruiseControl.Core.Sourcecontrol.Mercurial.Mercurial((IHistoryParser) mockHistoryParser.MockInstance, (ProcessExecutor) mockProcessExecutor.MockInstance, filesystem);
     hg.WorkingDirectory = @"c:\source\";
 }