This commit is contained in:
Miha
2022-04-19 15:46:34 -07:00
commit 50ed6f6504
120 changed files with 16787 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
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);
}
}