Skip to content

Commit 07812a4

Browse files
try without new using to try to test
1 parent 21e7e5c commit 07812a4

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

GoogleTestAdapter/Core/Runners/SequentialTestRunner.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
using GoogleTestAdapter.Model;
1313
using GoogleTestAdapter.Framework;
1414
using GoogleTestAdapter.Settings;
15-
using GoogleTestAdapter.TestCases;
1615

1716
namespace GoogleTestAdapter.Runners
1817
{
@@ -66,10 +65,10 @@ public void RunTests(IEnumerable<TestCase> testCasesToRun, string baseDir,
6665
{
6766
var key = Path.GetFullPath(testCase.Source) + ":" + testCase.FullyQualifiedName;
6867

69-
var testType = testCase.Traits.FirstOrDefault(t => t.Name.Equals(nameof(TestCaseDescriptor.TestType)));
68+
var testType = testCase.Traits.FirstOrDefault(t => t.Name.Equals("TestType"));
7069
// If it is a parameterized test, we should look for the "parent" key which doesn't have the suite or the id defined in the xml file.
7170
// The strategy for this can also be seen in the MethodSignatureCreate.cs file, going the other way.
72-
if (testType != null && testType.Value.Equals(TestCaseDescriptor.TestTypes.Parameterized))
71+
if (testType != null && testType.Value.Equals("Parameterized"))
7372
{
7473
int firstIndex = key.IndexOf("/");
7574
int lastIndex = key.LastIndexOf("/");

0 commit comments

Comments
 (0)