修正 FlowScope 测试程序集引用边界
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
"name": "FlowScope.Runtime",
|
||||
"rootNamespace": "FlowScope",
|
||||
"references": [
|
||||
"R3"
|
||||
"R3.Unity"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: eb3b4bf3dfdc46e4a9352fc2203bbfd4
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
"rootNamespace": "FlowScope.Tests",
|
||||
"references": [
|
||||
"FlowScope.Runtime",
|
||||
"R3"
|
||||
"R3.Unity"
|
||||
],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
|
||||
@@ -3,7 +3,8 @@
|
||||
"rootNamespace": "FlowScope.Tests",
|
||||
"references": [
|
||||
"FlowScope.Runtime",
|
||||
"R3"
|
||||
"FlowScope.Samples.MainMenuP0",
|
||||
"R3.Unity"
|
||||
],
|
||||
"includePlatforms": [],
|
||||
"excludePlatforms": [],
|
||||
|
||||
Reference in New Issue
Block a user