Ejemplo n.º 1
0
 public void Index(TestRunInformation testInformation)
 {
     foreach (var item in testInformation.IterateNodes())
     {
         Index(testInformation.Name, item);
     }
 }
 public void Index(TestRunInformation testInformation)
 {
     foreach(var item in testInformation.IterateNodes())
     {
         Index(testInformation.Name, item);
     }
 }
Ejemplo n.º 3
0
 private static string GetTestNode(TestRunInformation test)
 {
     if (test.TestChain != null)
     {
         return(test.TestChain.Name);
     }
     return("");
 }
Ejemplo n.º 4
0
 private static string GetTestNode(TestRunInformation test)
 {
     if(test.TestChain != null)
     {
         return test.TestChain.Name;
     }
     return "";
 }
 private static string BuildString(TestRunInformation entry)
 {
     var ret = "\n\n";
     ret += "name = " + entry.Name;
     ret += "Setups=" + entry.Setups.Select(BuildChain);
     ret += "Test=" + BuildChain(entry.TestChain);
     ret += entry.Teardowns.Select(BuildChain);
     return ret;
 }
Ejemplo n.º 6
0
        private static string BuildString(TestRunInformation entry)
        {
            var ret = "\n\n";

            ret += "name = " + entry.Name;
            ret += "Setups=" + entry.Setups.Select(BuildChain);
            ret += "Test=" + BuildChain(entry.TestChain);
            ret += entry.Teardowns.Select(BuildChain);
            return(ret);
        }
Ejemplo n.º 7
0
 private void RemoveCounts(TestRunInformation testInformation)
 {
     foreach (var item in testInformation.IterateNodes())
     {
         CountsAndTimes c;
         if (_timesHash.TryGetValue(item.Name.Replace('+', '/'), out c))
         {
             c.RemoveEntry(item);
         }
     }
 }
 private void RemoveCounts(TestRunInformation testInformation)
 {
     foreach (var item in testInformation.IterateNodes())
     {
         CountsAndTimes c;
         if (_timesHash.TryGetValue(item.Name.Replace('+', '/'), out c))
         {
             c.RemoveEntry(item);
         }
     }
 }
        public void Remove(TestRunInformation testInformation)
        {
            if (testInformation == null) return;
            if (testInformation.Name == null) return;
            RemoveCounts(testInformation);

            foreach (var item in testInformation.IterateNodes())
            {
                
                Remove(testInformation.Name.Replace('+', '/'), item.Name.Replace('+', '/'));
            }            
        }
Ejemplo n.º 10
0
 public static IEnumerable<IEnumerable<string>> FindPathsTo(TestRunInformation test, string method)
 {
     int x = 5;
     foreach (var setup in test.Setups)
     {
         foreach (var p in RecurseTo(setup, method, GetTestNode(test))) yield return p;
     }
     foreach (var p in RecurseTo(test.TestChain, method, null)) yield return p;
     foreach (var teardown in test.Teardowns)
     {
         foreach (var p in RecurseTo(teardown, method, GetTestNode(test))) yield return p;
     }
 }
Ejemplo n.º 11
0
        public void Remove(TestRunInformation testInformation)
        {
            if (testInformation == null)
            {
                return;
            }
            if (testInformation.Name == null)
            {
                return;
            }
            RemoveCounts(testInformation);

            foreach (var item in testInformation.IterateNodes())
            {
                Remove(testInformation.Name.Replace('+', '/'), item.Name.Replace('+', '/'));
            }
        }
Ejemplo n.º 12
0
        public static IEnumerable <IEnumerable <string> > FindPathsTo(TestRunInformation test, string method)
        {
            int x = 5;

            foreach (var setup in test.Setups)
            {
                foreach (var p in RecurseTo(setup, method, GetTestNode(test)))
                {
                    yield return(p);
                }
            }
            foreach (var p in RecurseTo(test.TestChain, method, null))
            {
                yield return(p);
            }
            foreach (var teardown in test.Teardowns)
            {
                foreach (var p in RecurseTo(teardown, method, GetTestNode(test)))
                {
                    yield return(p);
                }
            }
        }