Add unit tests for various indicators and update project file

- Implemented unit tests for the following indicators:
  - KAMA (Kaufman Adaptive Moving Average)
  - SMA (Simple Moving Average)
  - T3 (Tillson T3 Moving Average)
  - TEMA (Triple Exponential Moving Average)
  - TRIMA (Triangular Moving Average)
  - WMA (Weighted Moving Average)

- Each test class includes tests for constructor defaults, history depth, short name, initialization, processing updates, and source type handling.

- Updated the Quantower.Tests.csproj to include all new test files in the lib directory.
This commit is contained in:
Miha Kralj
2025-12-08 11:40:21 -08:00
parent ed5e5c8209
commit c2b33a8320
15 changed files with 33 additions and 46 deletions
+2 -1
View File
@@ -24,7 +24,8 @@
<!-- Include mock types -->
<Compile Include="Mocks\*.cs" />
<!-- Include test files -->
<Compile Include="*.Tests.cs" />
<Compile Include="**\*.Tests.cs" />
<Compile Include="..\lib\**\*.Quantower.Tests.cs" />
<!-- Include core library types -->
<Compile Include="..\lib\core\**\*.cs" Exclude="..\lib\core\**\*.Tests.cs" />
<!-- Include trends implementations -->