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); } }
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); }
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; } }
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); } } }