private void PresentClassElement(TestClassElement value, IPresentableItem item, TreeModelNode modelNode, PresentationState state) { if (IsNodeParentNatural(modelNode, value)) { item.RichText = value.TypeName.ShortName; } else if (string.IsNullOrEmpty(value.TypeName.GetNamespaceName())) { item.RichText = value.TypeName.ShortName; } else { item.RichText = string.Format("{0}.{1}", value.TypeName.GetNamespaceName(), value.TypeName.ShortName); } }
public IUnitTestElement GetOrCreateTestMethod(IProject project, TestClassElement testClass, string methodName, string assemblyLocation, bool isParameterized) { return(GetOrCreateTestMethod(project, testClass.TypeName, methodName, assemblyLocation, isParameterized)); }
public IUnitTestElement GetOrCreateTestMethod(IProject project, TestClassElement testClass, string methodName, string assemblyLocation, bool isParameterized) { return GetOrCreateTestMethod(project, testClass.TypeName, methodName, assemblyLocation, isParameterized); }