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