From 55265c384d7154463981a6881e6d6b04d70ebb86 Mon Sep 17 00:00:00 2001 From: "pavel.butuzov" Date: Tue, 8 Oct 2024 09:53:40 +0300 Subject: [PATCH] Fixed the tests. --- TmsRunner/Services/FilterService.cs | 1 - TmsRunnerTests/Services/FilterServiceTests.cs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TmsRunner/Services/FilterService.cs b/TmsRunner/Services/FilterService.cs index ac3c020..9be0e9a 100644 --- a/TmsRunner/Services/FilterService.cs +++ b/TmsRunner/Services/FilterService.cs @@ -69,7 +69,6 @@ private string GetExternalId(MethodInfo testMethod, TestCase testCase) public List FilterTestCasesByLabels(AdapterConfig config, IReadOnlyCollection testCases) { var labelsToRun = config.TmsLabelsOfTestsToRun?.Split(',').Select(x => x.Trim()).ToList(); - var testCasesName = testCases.Select(t => t.FullyQualifiedName); var testCasesToRun = new List(); var assembly = Assembly.LoadFrom(config.TestAssemblyPath ?? string.Empty); var allTestMethods = new List(assembly.GetExportedTypes().SelectMany(type => type.GetMethods())); diff --git a/TmsRunnerTests/Services/FilterServiceTests.cs b/TmsRunnerTests/Services/FilterServiceTests.cs index 4ff064b..87cd9ec 100644 --- a/TmsRunnerTests/Services/FilterServiceTests.cs +++ b/TmsRunnerTests/Services/FilterServiceTests.cs @@ -34,12 +34,11 @@ public void FilterTestCasesByLabels() { // Arrange var filterService = new FilterService(_logger, _replacer); - var assemblyPath = typeof(FilterServiceTests).Assembly.Location; var config = new AdapterConfig { TestAssemblyPath = typeof(FilterServiceTests).Assembly.Location }; - var testcases = new[] { new TestCase() }; + var testcases = new[] { new TestCase { FullyQualifiedName = "test" } }; // Act var actual = filterService.FilterTestCasesByLabels(config, testcases);