mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-18 10:38:05 +00:00
GitVersion
GitVersion
This commit is contained in:
@@ -1,23 +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);
|
||||
}
|
||||
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user