Beispiel #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);
     }
 }
Beispiel #3
0
 private static string GetTestNode(TestRunInformation test)
 {
     if (test.TestChain != null)
     {
         return(test.TestChain.Name);
     }
     return("");
 }
 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;
 }
        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);
        }
Beispiel #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('+', '/'));
            }            
        }
 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;
     }
 }
Beispiel #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('+', '/'));
            }
        }
Beispiel #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);
                }
            }
        }