Ejemplo n.º 1
0
 public EditorTestInfo(TestMethod testMethod)
 {
     this.methodName = testMethod.get_MethodName();
     this.fullMethodName = testMethod.get_Method().ToString();
     this.className = testMethod.get_FixtureType().Name;
     this.fullClassName = testMethod.get_ClassName();
     this.Namespace = testMethod.get_Method().ReflectedType.Namespace;
     this.fullName = testMethod.get_TestName().get_FullName();
     this.paramName = ExtractMethodCallParametersString(this.fullName);
     this.id = testMethod.get_TestName().get_TestID().GetHashCode().ToString();
     List<string> list = Enumerable.ToList<string>(Enumerable.Cast<string>(testMethod.get_Categories()));
     if (testMethod.get_Parent().get_Categories().Count > 0)
     {
         list.AddRange(Enumerable.Cast<string>(testMethod.get_Parent().get_Categories()));
     }
     if (testMethod.get_Parent() is ParameterizedMethodSuite)
     {
         list.AddRange(Enumerable.Cast<string>(testMethod.get_Parent().get_Parent().get_Categories()));
     }
     this.categories = list.ToArray();
     this.assemblyPath = this.GetAssemblyPath(testMethod);
     this.isIgnored = testMethod.get_RunState() == 4;
 }