refactor: update validation test classes to be sealed and simplify Dispose methods

This commit is contained in:
Miha Kralj
2025-12-26 16:43:23 -08:00
parent bfb0f6a322
commit 4750c2b1e8
31 changed files with 238 additions and 228 deletions
@@ -9,7 +9,7 @@ using System.Collections.Generic;
namespace QuanTAlib.Tests;
public class LinRegValidationTests : IDisposable
public sealed class LinRegValidationTests : IDisposable
{
private readonly ValidationTestData _data;
@@ -20,16 +20,7 @@ public class LinRegValidationTests : IDisposable
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
_data.Dispose();
}
_data.Dispose();
}
[SkipLocalsInit]