cleanup: 删除死代码枚举 mode 3/4/7/8 及相关引用
mode 3(持仓名义本金)/4(持仓市值): 零引用死代码 mode 7/8(多空存续名义本金): 界面已禁用, 无历史数据(用户确认) 删除: - InterestModeEnum: 移除 持仓名义本金/持仓市值/多头存续名义本金/空头存续名义本金 枚举值保持显式(1/2/5/6/9), DB契约不变 - CalcNotionalByMode: 移除 mode 7/8 的 case - ConsTrade.InterestModels/InterestNotionalModels: 移除 mode 7/8 - 删除3个 mode 7/8 相关测试方法(场景已不存在) CalcNotionalByMode 现在只剩 mode 5/6(保证金)的 case, 待 Margin 独立计息入口建成后整体删除。 验证: 编译0错误, 全量508测试7失败(基线一致)。
This commit is contained in:
@@ -121,10 +121,9 @@ namespace UnitTestProject.Modules.SwapModule.FundingLegs
|
||||
[TestMethod]
|
||||
public void 工厂_未注册mode抛异常()
|
||||
{
|
||||
// mode 3/4/7/8 已从枚举删除,用 Unknown(0)验证未注册抛异常
|
||||
Assert.ThrowsException<ArgumentException>(() =>
|
||||
FundingLegStrategyFactory.Get(InterestModeEnum.持仓名义本金));
|
||||
Assert.ThrowsException<ArgumentException>(() =>
|
||||
FundingLegStrategyFactory.Get(InterestModeEnum.持仓市值));
|
||||
FundingLegStrategyFactory.Get(InterestModeEnum.Unknown));
|
||||
Assert.ThrowsException<ArgumentException>(() =>
|
||||
FundingLegStrategyFactory.Get(InterestModeEnum.初始预付金));
|
||||
Assert.ThrowsException<ArgumentException>(() =>
|
||||
|
||||
Reference in New Issue
Block a user