public IEnumerator RegisterScreen_WhenWindowWithPropertiesRegistered_ScreenIsRegistered() { uiFrame.Initialize(); WindowWithProperties windowPrefab = AssetDatabase.LoadAssetAtPath <WindowWithProperties>(WindowWithPropertiesPath); uiFrame.RegisterScreen(windowPrefab); Assert.IsTrue(uiFrame.IsScreenRegistered <WindowWithProperties>()); yield return(null); }
public IEnumerator ShowScreen_WhenWindowWithPropertiesRegistered_ShowScreen() { uiFrame.Initialize(); WindowWithProperties windowPrefab = AssetDatabase.LoadAssetAtPath <WindowWithProperties>(WindowWithPropertiesPath); uiFrame.RegisterScreen(windowPrefab); uiFrame.ShowScreen <WindowWithProperties>(); Assert.IsTrue(uiFrame.CurrentWindow.GetType() == typeof(WindowWithProperties)); yield return(null); }