mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-07-31 19:07:42 +00:00
59ca5c2395
GitVersion
24 lines
450 B
C#
24 lines
450 B
C#
using Xunit;
|
|
using System;
|
|
using QuanTAlib;
|
|
|
|
namespace Basics;
|
|
public class Abstract_Test
|
|
{
|
|
[Fact]
|
|
public void Single_Add_variations()
|
|
{
|
|
TSeries s = new() { 1,2,3,4,5 };
|
|
SMA_Series a = new(s, 3)
|
|
{
|
|
{ (DateTime.Today, 10), true }
|
|
};
|
|
Assert.Equal(s.Length, a.Length);
|
|
a.Add(true);
|
|
Assert.Equal(s.Length, a.Length);
|
|
a.Add();
|
|
Assert.Equal(s.Length+1, a.Length);
|
|
}
|
|
|
|
}
|