You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
800 B
31 lines
800 B
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) |
|
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt) |
|
|
|
using System; |
|
|
|
namespace ICSharpCode.MSTest |
|
{ |
|
public class MSTestQualifiedClassName |
|
{ |
|
public MSTestQualifiedClassName(string qualifiedClassName) |
|
{ |
|
ClassName = GetClassName(qualifiedClassName); |
|
} |
|
|
|
string GetClassName(string qualifiedClassName) |
|
{ |
|
int index = qualifiedClassName.IndexOf(','); |
|
if (index > 0) { |
|
return qualifiedClassName.Substring(0, index); |
|
} |
|
return qualifiedClassName; |
|
} |
|
|
|
public string ClassName { get; private set; } |
|
|
|
public string GetQualifiedMethodName(string methodName) |
|
{ |
|
return String.Format("{0}.{1}", ClassName, methodName); |
|
} |
|
} |
|
}
|
|
|