Fix 4/4 of CA2201 warnings (#8103)

* Fix 4/4 of CA2201

* Remove warnings
This commit is contained in:
Ricardo Andrés Marino Rojas
2024-06-25 09:13:32 -05:00
committed by GitHub
parent aa5ab68b47
commit 5699fa48fd
80 changed files with 273 additions and 273 deletions
+2 -2
View File
@@ -61,12 +61,12 @@ namespace QuantConnect.Algorithm.CSharp
{
if (_trainTimes.Count != 2)
{
throw new Exception($"Unexpected train count: {_trainTimes.Count}");
throw new RegressionTestException($"Unexpected train count: {_trainTimes.Count}");
}
if (_trainTimes.Dequeue() != StartDate
|| _trainTimes.Dequeue() != new DateTime(2013, 10, 13, 8, 0, 0))
{
throw new Exception($"Unexpected train times!");
throw new RegressionTestException($"Unexpected train times!");
}
}