Skip to content

Commit cb99764

Browse files
committed
Refactor test base class and remove cleanup fixture
Removed the TestCleanupFixture and related IClassFixture usage from BaseExtractorTestClass. Cleaned up and reorganized using directives, removing unnecessary usings and adding specific NLog usings. The file now only contains BaseExtractorTestClass with its logger initialization.
1 parent 814aab5 commit cb99764

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

RecursiveExtractor.Tests/ExtractorTests/BaseExtractorTestClass.cs

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,10 @@
1-
using System;
2-
using Microsoft.CST.RecursiveExtractor.Tests;
3-
using NLog;
1+
using NLog;
42
using NLog.Config;
53
using NLog.Targets;
6-
using Xunit;
74

85
namespace RecursiveExtractor.Tests.ExtractorTests;
96

10-
/// <summary>
11-
/// Shared fixture that cleans up temp directories once after all tests in a class complete.
12-
/// </summary>
13-
public class TestCleanupFixture : IDisposable
14-
{
15-
public void Dispose()
16-
{
17-
TestPathHelpers.DeleteTestDirectory();
18-
}
19-
}
20-
21-
public class BaseExtractorTestClass : IClassFixture<TestCleanupFixture>
7+
public class BaseExtractorTestClass
228
{
239
protected static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
2410

0 commit comments

Comments
 (0)