[CodeFactor] Apply fixes to commit 0606491

This commit is contained in:
codefactor-io
2026-03-12 19:37:50 +00:00
parent 060649192f
commit 8f79257155
384 changed files with 1197 additions and 1215 deletions
@@ -115,7 +115,7 @@ public sealed class BbiIndicatorTests
var now = DateTime.UtcNow;
for (int i = 0; i < 30; i++)
{
indicator.HistoricalData.AddBar(now.AddMinutes(i), 100 + i * 0.5, 110 + i * 0.5, 90 + i * 0.5, 105 + i * 0.5);
indicator.HistoricalData.AddBar(now.AddMinutes(i), 100 + (i * 0.5), 110 + (i * 0.5), 90 + (i * 0.5), 105 + (i * 0.5));
indicator.ProcessUpdate(new UpdateArgs(UpdateReason.HistoricalBar));
}
+1 -1
View File
@@ -381,7 +381,7 @@ public sealed class BbiTests
int n = 10_000;
var source = new double[n];
var output = new double[n];
for (int i = 0; i < n; i++) { source[i] = 100.0 + i * 0.01; }
for (int i = 0; i < n; i++) { source[i] = 100.0 + (i * 0.01); }
var ex = Record.Exception(() => Bbi.Batch(source.AsSpan(), output.AsSpan()));
Assert.Null(ex);
}