Fix 4/4 of CA2201 warnings (#8103)
* Fix 4/4 of CA2201 * Remove warnings
This commit is contained in:
committed by
GitHub
parent
aa5ab68b47
commit
5699fa48fd
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user