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
@@ -49,7 +49,7 @@ namespace QuantConnect.Algorithm.CSharp
_gotDividend = true;
if (Time != dividend.Value.Time || Time.Day != 24)
{
throw new Exception("Got a dividend at an unexpected point in time");
throw new RegressionTestException("Got a dividend at an unexpected point in time");
}
}
foreach (var tradeBar in data.Bars)
@@ -62,7 +62,7 @@ namespace QuantConnect.Algorithm.CSharp
{
if (!_gotDividend)
{
throw new Exception("Never got a dividend!");
throw new RegressionTestException("Never got a dividend!");
}
}