using System.Collections; using System.Collections.Generic; using NUnit.Framework; using TKS.OutGame; using UnityEngine; using UnityEngine.SceneManagement; using UnityEngine.TestTools; using UnityEngine.UI; namespace TKS.Tests { /// /// 내정 메뉴 개편(PD 2026-11-12) — ① 탭마다 배경 장면(표 domestic_scene.csv view 줄 · 연출 = Frame 캔버스) ② 훈련 = 표 slot 줄 수만큼 병사 · 동작이 Frame 캔버스 안 · 구령 단계가 돈다 /// ③ 순찰 = 「시간당 수확」은 닫혀 있다가 누르면 펼침 · 버튼은 「수확」 「즉시 수확」 2개만(광고 버튼 없음) · 수확 → 팝업에서 광고 2배 고름 ④ 개발 = 두루마리 위 노드 전부. /// 기대 수(병사 자리)는 표에서 읽는다(C45). /// public class DomesticSceneTests { OutGameRoot og; [TearDown] public void TearDown() { SaveStore.UseMemory(false); } IEnumerator Boot() { WorldProgress.Reset(); SaveStore.UseMemory(true); SceneManager.LoadScene("Battle"); yield return null; yield return null; og = OutGameRoot.Instance; Assert.IsNotNull(og); og.OnTab(2); Assert.AreEqual(og.Domestic, og.Current); } static void AssertFrame(Transform t, string what) { var c = t.GetComponentInParent(true); Assert.IsNotNull(c, what); var tag = c.GetComponent(); Assert.IsTrue(tag != null && tag.rate == UiRate.Frame, what + ": 매 프레임 요소가 Frame 캔버스 밖(" + c.name + ")"); } static List ButtonNames(Transform root) { var l = new List(); foreach (var b in root.GetComponentsInChildren