示例#1
0
        public void GetTFSServerTest()
        {
            VersionControlServer actual;

            actual = SCMUtils.GetTFSServer(_tfsServer);

            Assert.IsNotNull(actual);
            Assert.AreEqual <string>(_tfsServer, actual.TeamFoundationServer.Name);
        }
示例#2
0
        public void GetBranchesTest()
        {
            VersionControlServer vcs       = SCMUtils.GetTFSServer(_tfsServer);
            string                srcPath  = "$/IGT_0803/main/EGS/";
            VersionSpec           ver      = VersionSpec.Latest;
            TreapDict <int, Item> expected = null;
            TreapDict <int, Item> actual;

            actual = SCMUtils.GetBranches(vcs, srcPath, ver);

            Assert.IsNotNull(actual);
            Assert.IsTrue(actual.size() > 0);
        }