Esempio n. 1
0
 public void AddChild(RemoteTaskWrapper child)
 {
     if (children == null)
     {
         children = new List <RemoteTaskWrapper>();
     }
     children.Add(child);
 }
Esempio n. 2
0
 private void AddTheoryTask(string key, string fullyQualifiedMethodName, RemoteTaskWrapper task)
 {
     lock (lockObject)
     {
         tasksByTheoryId.Add(key, task);
         tasksByFullyQualifiedMethodName[fullyQualifiedMethodName].AddChild(task);
     }
 }
Esempio n. 3
0
 private void AddMethodTask(string key, string typeName, RemoteTaskWrapper task)
 {
     lock (lockObject)
     {
         tasksByFullyQualifiedMethodName.Add(key, task);
         tasksByClassName[typeName].AddChild(task);
     }
 }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        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);
        }
Esempio n. 6
0
 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;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 8
0
 private void AddTheoryTask(string key, string fullyQualifiedMethodName, RemoteTaskWrapper task)
 {
     lock (lockObject)
     {
         tasksByTheoryId.Add(key, task);
         tasksByFullyQualifiedMethodName[fullyQualifiedMethodName].AddChild(task);
     }
 }
Esempio n. 9
0
 private void AddMethodTask(string key, string typeName, RemoteTaskWrapper task)
 {
     lock (lockObject)
     {
         tasksByFullyQualifiedMethodName.Add(key, task);
         tasksByClassName[typeName].AddChild(task);
     }
 }
 public void AddChild(RemoteTaskWrapper child)
 {
     if (children == null)
         children = new List<RemoteTaskWrapper>();
     children.Add(child);
 }