diff --git a/Tests/Runtime/GameObjectAdapterPlayTests.cs b/Tests/Runtime/GameObjectAdapterPlayTests.cs old mode 100644 new mode 100755 index 2c252df..c16e099 --- a/Tests/Runtime/GameObjectAdapterPlayTests.cs +++ b/Tests/Runtime/GameObjectAdapterPlayTests.cs @@ -37,7 +37,7 @@ public void TestMethod(object parameter = null) { private GameObject testGo = null; [OneTimeSetUp] - public void OneTimeSetup() { + public void OneTimeSetup() { EditorSettings.enterPlayModeOptionsEnabled = true; EditorSettings.enterPlayModeOptions = EnterPlayModeOptions.DisableDomainReload; } @@ -158,7 +158,7 @@ public IEnumerator G_GameObjectAdapter_W_InstantiateWithPositionAndParent_T_NewG public IEnumerator G_GameObjectAdapter_W_SendMessage_T_MessageIsSent() { // Arrange var mockBehaviour = testGo.AddComponent(); - + // Act goAdapter.SendMessage(TEST_METHOD_NAME, TEST_PARAMETER_NAME, SendMessageOptions.RequireReceiver); yield return null; // Wait for a frame to ensure the message is processed @@ -208,7 +208,7 @@ public IEnumerator G_GameObjectAdapter_W_BroadcastMessage_T_MessageIsBroadcasted // Clean up Object.Destroy(childObj); } - + [UnityTest] public IEnumerator G_GameObjectAdapter_W_FindWithTag_T_ReturnsCorrectGameObjectAdapter() { // Arrange @@ -254,16 +254,14 @@ private void InitTagConfig(string tagName) { var tagManager = new SerializedObject(AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/TagManager.asset")[0]); var targetPropName = "tags"; var tagsProp = tagManager.FindProperty(targetPropName); - + bool isFound = false; for (int i = 0; i < tagsProp.arraySize; i++) { SerializedProperty t = tagsProp.GetArrayElementAtIndex(i); - if (t.stringValue.Equals(tagName)) { + if (t.stringValue.Equals(tagName)) isFound = true; - break ; - } } - + if (!isFound) { tagsProp.InsertArrayElementAtIndex(0); SerializedProperty newTag = tagsProp.GetArrayElementAtIndex(0); @@ -273,4 +271,4 @@ private void InitTagConfig(string tagName) { } } -} // namespace \ No newline at end of file +} // namespace