mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-12 23:58:04 +00:00
- Cleaned up code by removing unused using directives from various test and implementation files in the trends and volume directories. - This includes files related to HMA, HTIT, JMA, KAMA, LSMA, MAMA, MGDI, PWMA, RMA, SMA, SSF, SUPER, T3, TEMA, TRIMA, USF, VIDYA, WMA, ATR, ADL, and ADOSC. - Improved code readability and maintainability by streamlining imports.
26 lines
660 B
C#
26 lines
660 B
C#
using TradingPlatform.BusinessLayer;
|
|
|
|
namespace QuanTAlib.Quantower.Tests;
|
|
|
|
public class UsfIndicatorTests
|
|
{
|
|
[Fact]
|
|
public void Indicator_InitializesCorrectly()
|
|
{
|
|
var indicator = new UsfIndicator();
|
|
Assert.Equal(20, indicator.Period);
|
|
Assert.Equal("USF 20:Close", indicator.ShortName);
|
|
}
|
|
|
|
[Fact]
|
|
public void Indicator_ProcessesData()
|
|
{
|
|
var indicator = new UsfIndicator();
|
|
|
|
// Simulate Init
|
|
indicator.GetType().GetMethod("OnInit", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)?.Invoke(indicator, null);
|
|
|
|
Assert.NotNull(indicator);
|
|
}
|
|
}
|