Esempio n. 1
0
        public void display_successors_samples(string v)
        {
            ReleaseTagVersion t = ReleaseTagVersion.TryParse(v);
            var succ            = t.GetDirectSuccessors(false);

            Console.WriteLine(" -> - found {0} successors for '{1}' (Ordered Version = {2}, File = {3}):",
                              succ.Count(),
                              t,
                              t.OrderedVersion,
                              t.ToStringFileVersion(false));
            Console.WriteLine("      " + string.Join(", ", succ.Select(s => s.ToString())));

            var closest = t.GetDirectSuccessors(true).Select(s => s.ToString()).ToList();

            Console.WriteLine("    - {0} next fixes:", closest.Count, t);
            Console.WriteLine("      " + string.Join(", ", closest));
        }