mirror of
https://github.com/mihakralj/QuanTAlib.git
synced 2026-08-15 09:08:04 +00:00
Refactor: Remove unnecessary using directives across multiple files
- Cleaned up code by removing unused using directives from various test and implementation files in the trends and volume directories. - This includes files related to HMA, HTIT, JMA, KAMA, LSMA, MAMA, MGDI, PWMA, RMA, SMA, SSF, SUPER, T3, TEMA, TRIMA, USF, VIDYA, WMA, ATR, ADL, and ADOSC. - Improved code readability and maintainability by streamlining imports.
This commit is contained in:
@@ -175,8 +175,8 @@ public class RingBufferTests
|
||||
|
||||
// Valid indices are 0 and 1 (2 elements)
|
||||
// Index 2 should throw ArgumentOutOfRangeException
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => _ = buffer[(Index)2]);
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => _ = buffer[(Index)10]);
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => _ = buffer[2]);
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => _ = buffer[10]);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -522,7 +522,7 @@ public class RingBufferTests
|
||||
|
||||
Assert.Equal(60.0, buffer.Sum);
|
||||
|
||||
buffer[(Index)1] = 25.0; // Change 20.0 to 25.0
|
||||
buffer[1] = 25.0; // Change 20.0 to 25.0
|
||||
|
||||
Assert.Equal(65.0, buffer.Sum);
|
||||
Assert.Equal(25.0, buffer[1]);
|
||||
@@ -675,7 +675,7 @@ public class RingBufferTests
|
||||
buffer.Add(30.0);
|
||||
buffer.Add(40.0); // Wraps - now has 20, 30, 40
|
||||
|
||||
buffer[(Index)0] = 25.0; // Change oldest (20.0) to 25.0
|
||||
buffer[0] = 25.0; // Change oldest (20.0) to 25.0
|
||||
|
||||
Assert.Equal(95.0, buffer.Sum); // 25 + 30 + 40
|
||||
Assert.Equal(25.0, buffer[0]);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Numerics;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
Reference in New Issue
Block a user