public void SignIn_Doesnt_Save_Token_In_Scene() { player.SignIn("xxxxxxLOLxxxxxx"); Assert.AreEqual(player.vimeoToken, null); Assert.AreEqual(player.GetVimeoToken(), "xxxxxxLOLxxxxxx"); Assert.AreEqual(player.vimeoSignIn, true); }
public void DrawVimeoConfig(VimeoPlayer player) { var so = serializedObject; if (Authenticated(player.GetVimeoToken()) && player.vimeoSignIn) { EditorGUILayout.PropertyField(so.FindProperty("videoScreen")); EditorGUILayout.PropertyField(so.FindProperty("audioSource")); EditorGUILayout.PropertyField(so.FindProperty("vimeoVideoId"), new GUIContent("Vimeo Video URL")); player.videoQualityIndex = EditorGUILayout.Popup("Video Quality", player.videoQualityIndex, player.videoQualities); EditorGUILayout.Space(); } DrawVimeoAuth(player); so.ApplyModifiedProperties(); }
public void SignIn_Works_In_Editor() { UnityEngine.TestTools.LogAssert.NoUnexpectedReceived(); player.SignIn("xxx"); Assert.AreEqual(player.GetVimeoToken(), "xxx"); }