@@ -234,7 +234,6 @@ private TestCase CreateTestCase(TestCaseDescriptor descriptor)
234234 var testCase = new TestCase (
235235 descriptor . FullyQualifiedName , descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , "" , 0 ) ;
236236 testCase . Traits . AddRange ( GetFinalTraits ( descriptor . DisplayName , new List < Trait > ( ) ) ) ;
237- testCase . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
238237 return testCase ;
239238 }
240239
@@ -262,15 +261,12 @@ private TestCase CreateTestCase(TestCaseDescriptor descriptor, TestCaseLocation
262261 var testCase = new TestCase (
263262 descriptor . FullyQualifiedName , ns + descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , location . Sourcefile , ( int ) location . Line ) ;
264263 testCase . Traits . AddRange ( GetFinalTraits ( descriptor . DisplayName , location . Traits ) ) ;
265- testCase . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
266264 return testCase ;
267265 }
268266
269- var returnTest = new TestCase (
270- descriptor . FullyQualifiedName , descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , "" , 0 ) ;
271- returnTest . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
272267 _logger . LogWarning ( String . Format ( Resources . LocationNotFoundError , descriptor . FullyQualifiedName ) ) ;
273- return returnTest ;
268+ return new TestCase (
269+ descriptor . FullyQualifiedName , descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , "" , 0 ) ;
274270 }
275271
276272 internal static string GetTestSignatureNamespace ( string signature )
0 commit comments