public void AddChild(RemoteTaskWrapper child) { if (children == null) { children = new List <RemoteTaskWrapper>(); } children.Add(child); }
private void AddTheoryTask(string key, string fullyQualifiedMethodName, RemoteTaskWrapper task) { lock (lockObject) { tasksByTheoryId.Add(key, task); tasksByFullyQualifiedMethodName[fullyQualifiedMethodName].AddChild(task); } }
private void AddMethodTask(string key, string typeName, RemoteTaskWrapper task) { lock (lockObject) { tasksByFullyQualifiedMethodName.Add(key, task); tasksByClassName[typeName].AddChild(task); } }
private RemoteTaskWrapper CreateDynamicMethodTask(ITestMethod testMethod, string methodName) { var classTask = GetClassTask(testMethod.TestClass); var methodTask = new XunitTestMethodTask((XunitTestClassTask)classTask.RemoteTask, methodName, true, true); var task = new RemoteTaskWrapper(methodTask, server); server.CreateDynamicElement(methodTask); return(task); }
private RemoteTaskWrapper CreateDynamicTheoryTask(ITestMethod testMethod, string theoryName) { var methodTask = GetMethodTask(testMethod, testMethod.Method.Name); var theoryTask = new XunitTestTheoryTask((XunitTestMethodTask)methodTask.RemoteTask, DisplayNameUtil.Escape(theoryName)); var task = new RemoteTaskWrapper(theoryTask, server); server.CreateDynamicElement(theoryTask); return(task); }
private RemoteTaskWrapper CreateDynamicTheoryTask(ITestMethod testMethod, string theoryName) { var methodTask = GetMethodTask(testMethod, testMethod.Method.Name); var theoryTask = new XunitTestTheoryTask((XunitTestMethodTask) methodTask.RemoteTask, DisplayNameUtil.Escape(theoryName)); var task = new RemoteTaskWrapper(theoryTask, server); server.CreateDynamicElement(theoryTask); return task; }
private RemoteTaskWrapper CreateDynamicMethodTask(ITestMethod testMethod, string methodName) { var classTask = GetClassTask(testMethod.TestClass); var methodTask = new XunitTestMethodTask((XunitTestClassTask) classTask.RemoteTask, methodName, true, true); var task = new RemoteTaskWrapper(methodTask, server); server.CreateDynamicElement(methodTask); return task; }
public void AddChild(RemoteTaskWrapper child) { if (children == null) children = new List<RemoteTaskWrapper>(); children.Add(child); }