[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
+4 -4
View File
@@ -72,7 +72,7 @@ public class ReflexTests
for (int i = 0; i < 500; i++)
{
indicator.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + i * 0.1));
indicator.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + (i * 0.1)));
}
Assert.True(indicator.IsHot);
@@ -98,7 +98,7 @@ public class ReflexTests
// Warm up past the period threshold first
for (int i = 0; i < DefaultPeriod + 5; i++)
{
indicator.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + i * 0.5), isNew: true);
indicator.Update(new TValue(DateTime.UtcNow.AddSeconds(i), 100.0 + (i * 0.5)), isNew: true);
}
TValue r1 = indicator.Update(new TValue(DateTime.UtcNow.AddSeconds(30), 120.0), isNew: true);
@@ -235,7 +235,7 @@ public class ReflexTests
for (int i = 0; i < 100; i++)
{
source[i] = 100.0 + i * 0.5;
source[i] = 100.0 + (i * 0.5);
}
source[50] = double.NaN;
@@ -328,7 +328,7 @@ public class ReflexTests
for (int i = 0; i < size; i++)
{
source[i] = 100.0 + i * 0.1;
source[i] = 100.0 + (i * 0.1);
}
Reflex.Batch(source, output, 20);