コード例 #1
0
 public void Index(TestRunInformation testInformation)
 {
     foreach (var item in testInformation.IterateNodes())
     {
         Index(testInformation.Name, item);
     }
 }
コード例 #2
0
 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 "";
 }
コード例 #5
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;
 }
コード例 #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);
        }
コード例 #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);
         }
     }
 }
コード例 #8
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);
         }
     }
 }
コード例 #9
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('+', '/'));
            }            
        }
コード例 #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);
                }
            }
        }