修正 FlowScope 测试程序集引用边界

This commit is contained in:
JSD\13999
2026-05-18 14:42:34 +08:00
parent e35981d246
commit 686dec326e
7 changed files with 33 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
"name": "FlowScope.Runtime", "name": "FlowScope.Runtime",
"rootNamespace": "FlowScope", "rootNamespace": "FlowScope",
"references": [ "references": [
"R3" "R3.Unity"
], ],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],

View File

@@ -0,0 +1,17 @@
{
"name": "FlowScope.Samples.MainMenuP0",
"rootNamespace": "FlowScope.Samples.MainMenuP0",
"references": [
"FlowScope.Runtime",
"R3.Unity"
],
"includePlatforms": [],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": false,
"precompiledReferences": [],
"autoReferenced": true,
"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}

View File

@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: eb3b4bf3dfdc46e4a9352fc2203bbfd4
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,11 +1,11 @@
using System; using System;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using FlowScope.Container;
using FlowScope.Flow; using FlowScope.Flow;
using FlowScope.Resources; using FlowScope.Resources;
using NUnit.Framework; using NUnit.Framework;
using R3; using R3;
using ContainerType = FlowScope.Container.Container;
namespace FlowScope.Tests.EditMode.Flow namespace FlowScope.Tests.EditMode.Flow
{ {
@@ -51,7 +51,7 @@ namespace FlowScope.Tests.EditMode.Flow
private static FeatureContext CreateContext() private static FeatureContext CreateContext()
{ {
return new FeatureContext( return new FeatureContext(
new Container(), new ContainerType(),
new TestResourceGroup(), new TestResourceGroup(),
new CompositeDisposable(), new CompositeDisposable(),
CancellationToken.None); CancellationToken.None);

View File

@@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
using FlowScope.Config; using FlowScope.Config;
using FlowScope.Container;
using FlowScope.Flow; using FlowScope.Flow;
using FlowScope.Resources; using FlowScope.Resources;
using FlowScope.Save; using FlowScope.Save;
using NUnit.Framework; using NUnit.Framework;
using ContainerType = FlowScope.Container.Container;
namespace FlowScope.Tests.EditMode.Flow namespace FlowScope.Tests.EditMode.Flow
{ {
@@ -140,9 +140,9 @@ namespace FlowScope.Tests.EditMode.Flow
public TestSaveService Save { get; } = new(); public TestSaveService Save { get; } = new();
public TestResourceService Resource { get; } = new(); public TestResourceService Resource { get; } = new();
public Container CreateRoot() public ContainerType CreateRoot()
{ {
var root = new Container(); var root = new ContainerType();
root.RegisterInstance<IConfigProvider>(Config); root.RegisterInstance<IConfigProvider>(Config);
root.RegisterInstance<ISaveService>(Save); root.RegisterInstance<ISaveService>(Save);
root.RegisterInstance<IResourceService>(Resource); root.RegisterInstance<IResourceService>(Resource);

View File

@@ -3,7 +3,7 @@
"rootNamespace": "FlowScope.Tests", "rootNamespace": "FlowScope.Tests",
"references": [ "references": [
"FlowScope.Runtime", "FlowScope.Runtime",
"R3" "R3.Unity"
], ],
"includePlatforms": [ "includePlatforms": [
"Editor" "Editor"

View File

@@ -3,7 +3,8 @@
"rootNamespace": "FlowScope.Tests", "rootNamespace": "FlowScope.Tests",
"references": [ "references": [
"FlowScope.Runtime", "FlowScope.Runtime",
"R3" "FlowScope.Samples.MainMenuP0",
"R3.Unity"
], ],
"includePlatforms": [], "includePlatforms": [],
"excludePlatforms": [], "excludePlatforms": [],