mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-17 18:18:04 +00:00
- Removed unnecessary blank lines in multiple test files to enhance readability. - Ensured consistent spacing and formatting in the `Trima`, `Usf`, `Vidya`, `Wma`, and `Atr` test classes. - Updated comments for clarity and consistency in the `Atr` and `Adl` classes. - Adjusted project files for better structure and maintainability.
29 lines
721 B
C#
29 lines
721 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using TradingPlatform.BusinessLayer;
|
|
using Xunit;
|
|
|
|
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);
|
|
}
|
|
}
|