<commit_before>﻿using System.Collections;
using NUnit.Framework;
using UniRx;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
using UnityModule.AnimationEventDispatcher;

namespace Tests.UnityModule {

    public class AnimationEventDispatcherTest {

        [UnityTest]
        public IEnumerator OnDispatchAsObservableTest() {
            SceneManager.LoadScene("Tests/Scenes/Test");
            yield return new WaitForEndOfFrame();
            yield return new WaitForEndOfFrame();
            GameObject go = GameObject.Find("General");
            GeneralDispatcher dispatcher = go.GetComponent<GeneralDispatcher>();
            bool result = false;
            yield return dispatcher
                .OnDispatchAsObservable("Test")
                .Timeout(System.TimeSpan.FromSeconds(5))
                .First()
                .StartAsCoroutine(
                    (_) => {
                        result = true;
                    },
                    (e) => {
                    }
                );
            Assert.IsTrue(result, "Dispatch されたかどうか");
        }

    }

}<commit_msg>:name_badge: Rename TestCase<commit_after>﻿using System.Collections;
using NUnit.Framework;
using UniRx;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.TestTools;
using UnityModule.AnimationEventDispatcher;

namespace Tests.UnityModule {

    public class GeneralDispatcherTest {

        [UnityTest]
        public IEnumerator OnDispatchAsObservableTest() {
            SceneManager.LoadScene("Tests/Scenes/Test");
            yield return new WaitForEndOfFrame();
            yield return new WaitForEndOfFrame();
            GameObject go = GameObject.Find("General");
            GeneralDispatcher dispatcher = go.GetComponent<GeneralDispatcher>();
            bool result = false;
            yield return dispatcher
                .OnDispatchAsObservable("Test")
                .Timeout(System.TimeSpan.FromSeconds(5))
                .First()
                .StartAsCoroutine(
                    (_) => {
                        result = true;
                    },
                    (e) => {
                    }
                );
            Assert.IsTrue(result, "Dispatch されたかどうか");
        }

    }

}
{'fraction_non_alphanumeric': 0.08661417322834646, 'fraction_numerical': 0.0008748906386701663, 'mean_word_length': 1.8061349693251534, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '262568', 'n_tokens_mistral': 581, 'n_tokens_neox': 540, 'n_words': 110}