Ejemplo n.º 1
0
 /*
  *          Console.WriteLine($"{"Test name".FormatWidth(TestNameWidth)} {0, 15} {1,15} {2,15}",
  *              "Share[min]", "Executed", "Avg. dur.[ms]");
  */
 public string ToReportString(int width)
 {
     return(string.Format($"{TestFullName.FormatWidth(width)} {{0,-15:N5}} {{1,-15}} {{2,-15:N5}}",
                          Share / 60_000,
                          TimesExecuted,
                          Share / TimesExecuted));
 }
Ejemplo n.º 2
0
 public string ToShortDurationString(int width)
 {
     return($"{TestFullName.FormatWidth(width)} {Duration}");
 }
        public static string NameSpaceName()
        {
            var strings = TestFullName.Split('.');

            return(strings[strings.Length - 3]);
        }
        public static string TestFixtureName()
        {
            var strings = TestFullName.Split('.');

            return(strings[strings.Length - 2]);
        }