public static void AssertValidTfsPath(this string tfsPath) { if (!ValidTfsPath.IsMatch(tfsPath)) throw new GitTfsException("TFS repository can not be root and must start with \"$/\".", SuggestPaths(tfsPath)); }