Merge branch 'main' into dev

This commit is contained in:
Miha Kralj
2024-10-08 19:09:42 -07:00
7 changed files with 20 additions and 8 deletions
+2 -1
View File
@@ -5,9 +5,10 @@ using Trady.Core.Infrastructure;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
[SuppressMessage("Security", "SCS0005:Weak random number generator.", Justification = "Acceptable for tests")]
public class TradyTests
{
private readonly TBarSeries bars;
+2 -1
View File
@@ -3,9 +3,10 @@ using Tulip;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
[SuppressMessage("Security", "SCS0005:Weak random number generator.", Justification = "Acceptable for tests")]
public class TulipTests
{
private readonly GbmFeed feed;
+8 -6
View File
@@ -1,6 +1,8 @@
using Xunit;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
public class EventingTests
@@ -70,10 +72,10 @@ public class EventingTests
}
}
private static double GetRandomDouble(RandomNumberGenerator rng)
{
byte[] bytes = new byte[8];
rng.GetBytes(bytes);
return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue;
}
private static double GetRandomDouble(RandomNumberGenerator rng)
{
byte[] bytes = new byte[8];
rng.GetBytes(bytes);
return (double)BitConverter.ToUInt64(bytes, 0) / ulong.MaxValue;
}
}
+2
View File
@@ -3,6 +3,8 @@ using System.Reflection;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
/// <summary>
+2
View File
@@ -3,6 +3,8 @@ using System.Reflection;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
public class IndicatorTests
+2
View File
@@ -3,6 +3,8 @@ using Skender.Stock.Indicators;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
public class SkenderTests
+2
View File
@@ -3,6 +3,8 @@ using TALib;
using System.Diagnostics.CodeAnalysis;
using System.Security.Cryptography;
#pragma warning disable S1944, S2053, S2222, S2259, S2583, S2589, S3329, S3655, S3900, S3949, S3966, S4158, S4347, S5773, S6781
namespace QuanTAlib;
public class TAlibTests