public void Workspace_QueryLabels1()
        {
            // need TFS_ envvars for this test
            if (String.IsNullOrEmpty(tfsUrl))
            {
                return;
            }
            TeamFoundationServer tfs = new TeamFoundationServer(tfsUrl, credentials);

            VersionControlServer vcs = (VersionControlServer)tfs.GetService(typeof(VersionControlServer));

            string path = String.Format("$/{0}", Environment.GetEnvironmentVariable("TFS_PROJECT"));

            VersionControlLabel[] labels = vcs.QueryLabels(null, path, null, false);

            foreach (VersionControlLabel label in labels)
            {
                Assert.IsNotNull(label.Name);
            }
        }