@@ -109,9 +109,11 @@ public UnitTestElement(TestMethod testMethod)
109
109
/// <returns> An instance of <see cref="TestCase"/>. </returns>
110
110
internal TestCase ToTestCase ( )
111
111
{
112
- string fullName = this . TestMethod . HasManagedMethodAndTypeProperties
113
- ? string . Format ( CultureInfo . InvariantCulture , "{0}.{1}" , this . TestMethod . ManagedTypeName , this . TestMethod . ManagedMethodName )
114
- : string . Format ( CultureInfo . InvariantCulture , "{0}.{1}" , this . TestMethod . FullClassName , this . TestMethod . Name ) ;
112
+ // This causes compatibility problems with older runners.
113
+ // string fullName = this.TestMethod.HasManagedMethodAndTypeProperties
114
+ // ? string.Format(CultureInfo.InvariantCulture, "{0}.{1}", this.TestMethod.ManagedTypeName, this.TestMethod.ManagedMethodName)
115
+ // : string.Format(CultureInfo.InvariantCulture, "{0}.{1}", this.TestMethod.FullClassName, this.TestMethod.Name);
116
+ var fullName = string . Format ( CultureInfo . InvariantCulture , "{0}.{1}" , this . TestMethod . FullClassName , this . TestMethod . Name ) ;
115
117
116
118
TestCase testCase = new TestCase ( fullName , TestAdapter . Constants . ExecutorUri , this . TestMethod . AssemblyName ) ;
117
119
testCase . DisplayName = this . GetDisplayName ( ) ;
@@ -195,9 +197,12 @@ private string GetDisplayName()
195
197
{
196
198
if ( string . IsNullOrWhiteSpace ( this . DisplayName ) )
197
199
{
198
- return string . IsNullOrWhiteSpace ( this . TestMethod . ManagedMethodName )
199
- ? this . TestMethod . Name
200
- : this . TestMethod . ManagedMethodName ;
200
+ return this . TestMethod . Name ;
201
+
202
+ // This causes compatibility problems with older runners.
203
+ // return string.IsNullOrWhiteSpace(this.TestMethod.ManagedMethodName)
204
+ // ? this.TestMethod.Name
205
+ // : this.TestMethod.ManagedMethodName;
201
206
}
202
207
else
203
208
{
0 commit comments