private void CreateWorldPopup() { m_WorldPopup = new WorldPopup( () => RootSelection, x => SetRootSelection(x), () => Data?.DebugRoots ); }
public void WorldPopup_RestorePreviousSelection() { World world = null; var popup = new WorldPopup(() => null, x => world = x); popup.TryRestorePreviousSelection(false, WorldPopup.kNoWorldName); Assert.AreEqual(World.AllWorlds[0], world); popup.TryRestorePreviousSelection(false, World2Name); Assert.AreEqual(World2, world); }