修正 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",
"rootNamespace": "FlowScope",
"references": [
"R3"
"R3.Unity"
],
"includePlatforms": [],
"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.Threading;
using System.Threading.Tasks;
using FlowScope.Container;
using FlowScope.Flow;
using FlowScope.Resources;
using NUnit.Framework;
using R3;
using ContainerType = FlowScope.Container.Container;
namespace FlowScope.Tests.EditMode.Flow
{
@@ -51,7 +51,7 @@ namespace FlowScope.Tests.EditMode.Flow
private static FeatureContext CreateContext()
{
return new FeatureContext(
new Container(),
new ContainerType(),
new TestResourceGroup(),
new CompositeDisposable(),
CancellationToken.None);

View File

@@ -3,11 +3,11 @@ using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using FlowScope.Config;
using FlowScope.Container;
using FlowScope.Flow;
using FlowScope.Resources;
using FlowScope.Save;
using NUnit.Framework;
using ContainerType = FlowScope.Container.Container;
namespace FlowScope.Tests.EditMode.Flow
{
@@ -140,9 +140,9 @@ namespace FlowScope.Tests.EditMode.Flow
public TestSaveService Save { 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<ISaveService>(Save);
root.RegisterInstance<IResourceService>(Resource);

View File

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

View File

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