summaryrefslogtreecommitdiff
path: root/src/LivingVillage.Desktop.Tests/M6bTests.fs
diff options
context:
space:
mode:
authorSomhairle H. Marisol <[email protected]>2026-09-22 00:08:15 +0800
committerSomhairle H. Marisol <[email protected]>2026-09-22 00:08:15 +0800
commitd85cce460fd7fbb8854fb11ba547be1baf576de7 (patch)
tree2b96531615cc6171a5cd269cc767de68419dda04 /src/LivingVillage.Desktop.Tests/M6bTests.fs
parent4f700fc2c33fcf32ccb6c8fc8d3b5320d51a6db8 (diff)
downloadliving-village-d85cce460fd7fbb8854fb11ba547be1baf576de7.tar.gz
feat(desktop): P16 启动画面淡入(Esc/空格跳过)+ 开始界面收敛三项(开始/读档/退出)+ CJK 补字 238
Diffstat (limited to 'src/LivingVillage.Desktop.Tests/M6bTests.fs')
-rw-r--r--src/LivingVillage.Desktop.Tests/M6bTests.fs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/LivingVillage.Desktop.Tests/M6bTests.fs b/src/LivingVillage.Desktop.Tests/M6bTests.fs
index 5aea9bd..1b2ef70 100644
--- a/src/LivingVillage.Desktop.Tests/M6bTests.fs
+++ b/src/LivingVillage.Desktop.Tests/M6bTests.fs
@@ -13,8 +13,9 @@ type M6bMenuTests () =
Assert.AreEqual<MenuPage>(MainMenu, state.Page)
Assert.AreEqual<MenuItem list>(
- [ NewGameItem; LoadItem; SettingsItem; ControlsItem; ExitItem ],
+ [ NewGameItem; LoadItem; ExitItem ],
MenuState.items state)
+ Assert.AreEqual<string list>([ "开始"; "读档"; "退出" ], MenuState.items state |> List.map MenuState.itemLabel)
Assert.AreEqual<int>(0, state.Selected)
[<TestMethod>]
@@ -32,7 +33,7 @@ type M6bMenuTests () =
[<TestMethod>]
member _.SettingsCanSelectEveryExistingSimulationMode () =
let initial = MenuState.create SimulationControl.initial false
- let settings, _ = MenuState.update Confirm (MenuState.move Down (MenuState.move Down initial))
+ let settings = MenuState.openSettings initial
let oneX, oneXCommand = MenuState.update Confirm settings
let twoX, twoXCommand = MenuState.update Confirm (MenuState.move Down settings)
let fiveX, fiveXCommand = MenuState.update Confirm (MenuState.move Down (MenuState.move Down settings))