修正 FlowScope 测试程序集引用边界
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
"name": "FlowScope.Runtime",
|
"name": "FlowScope.Runtime",
|
||||||
"rootNamespace": "FlowScope",
|
"rootNamespace": "FlowScope",
|
||||||
"references": [
|
"references": [
|
||||||
"R3"
|
"R3.Unity"
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"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;
|
||||||
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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"rootNamespace": "FlowScope.Tests",
|
"rootNamespace": "FlowScope.Tests",
|
||||||
"references": [
|
"references": [
|
||||||
"FlowScope.Runtime",
|
"FlowScope.Runtime",
|
||||||
"R3"
|
"R3.Unity"
|
||||||
],
|
],
|
||||||
"includePlatforms": [
|
"includePlatforms": [
|
||||||
"Editor"
|
"Editor"
|
||||||
|
|||||||
@@ -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": [],
|
||||||
|
|||||||
Reference in New Issue
Block a user