DebugLogGameActionTests.cs 856 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using NUnit.Framework;
  4. using UnityEngine;
  5. using UnityEngine.TestTools;
  6. using KairoEngine.Core;
  7. using KairoEngine.Core.GameActions;
  8. namespace KairoEngine.Core.EditorTests.GameActions
  9. {
  10. public class DebugLogGameActionTests
  11. {
  12. [UnityTest]
  13. public IEnumerator DebugLogGameAction_ControllerIntegrationTest()
  14. {
  15. LogAssert.Expect(LogType.Log, "Hello world");
  16. GameActionsController controller = new GameActionsController();
  17. DebugLogGameAction debugAction = new DebugLogGameAction(controller);
  18. debugAction.message = "Hello world";
  19. controller.actions.Add(debugAction);
  20. controller.Start();
  21. yield return null;
  22. yield return null;
  23. yield return null;
  24. }
  25. }
  26. }