From 0257529a6f681bb00a6394849715a8939df0ae9d Mon Sep 17 00:00:00 2001 From: "JSD\\13999" <1399945104@qq.com> Date: Tue, 19 May 2026 11:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20GameFlow=20=E6=B8=85?= =?UTF-8?q?=E7=90=86=E5=BC=82=E5=B8=B8=E6=B5=8B=E8=AF=95=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/FlowScope/Tests/EditMode/Flow/GameFlowTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/My project/Assets/FlowScope/Tests/EditMode/Flow/GameFlowTests.cs b/My project/Assets/FlowScope/Tests/EditMode/Flow/GameFlowTests.cs index 38a0539..74ed320 100644 --- a/My project/Assets/FlowScope/Tests/EditMode/Flow/GameFlowTests.cs +++ b/My project/Assets/FlowScope/Tests/EditMode/Flow/GameFlowTests.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using FlowScope.Config; @@ -7,6 +8,8 @@ using FlowScope.Flow; using FlowScope.Resources; using FlowScope.Save; using NUnit.Framework; +using UnityEngine; +using UnityEngine.TestTools; using ContainerType = FlowScope.Container.Container; namespace FlowScope.Tests.EditMode.Flow @@ -110,6 +113,8 @@ namespace FlowScope.Tests.EditMode.Flow var flow = new GameFlow(); flow.StartupAsync(root, CancellationToken.None).GetAwaiter().GetResult(); + LogAssert.Expect(LogType.Error, new Regex("System\\.InvalidOperationException: exit failed")); + LogAssert.Expect(LogType.Error, new Regex("System\\.InvalidOperationException: dispose failed")); flow.ShutdownAsync(CancellationToken.None).GetAwaiter().GetResult(); Assert.That(flow.State, Is.EqualTo(GameFlowState.Disposed));