Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b80346f3b4 |
@@ -3,15 +3,16 @@
|
|||||||
"rootNamespace": "BracerLib.Tests",
|
"rootNamespace": "BracerLib.Tests",
|
||||||
"references": [
|
"references": [
|
||||||
"UnityEngine.TestRunner",
|
"UnityEngine.TestRunner",
|
||||||
"BracerLib"
|
"BracerLib",
|
||||||
|
"BracerLib.Utility.Testing"
|
||||||
],
|
],
|
||||||
"includePlatforms": [],
|
"includePlatforms": [],
|
||||||
"excludePlatforms": [],
|
"excludePlatforms": [],
|
||||||
"allowUnsafeCode": false,
|
"allowUnsafeCode": false,
|
||||||
"overrideReferences": true,
|
"overrideReferences": true,
|
||||||
"precompiledReferences": [
|
"precompiledReferences": [
|
||||||
"nunit.framework.dll",
|
"Moq.dll",
|
||||||
"Moq.dll"
|
"nunit.framework.dll"
|
||||||
],
|
],
|
||||||
"autoReferenced": true,
|
"autoReferenced": true,
|
||||||
"defineConstraints": [
|
"defineConstraints": [
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using Moq;
|
using Moq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.Assertions;
|
using UnityEngine.Assertions;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using UnityEngine.Assertions;
|
using UnityEngine.Assertions;
|
||||||
using UnityEngine.SceneManagement;
|
using UnityEngine.SceneManagement;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using BracerLib.Utility;
|
using BracerLib.Utility;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEngine;
|
|
||||||
|
|
||||||
namespace BracerLib.Tests.Utility
|
namespace BracerLib.Tests.Utility
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using BracerLib.Utility;
|
using BracerLib.Utility;
|
||||||
|
using BracerLib.Utility.Testing;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: c46ea07e02074d340aa2434ad26fcc12
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"name": "BracerLib.Utility.Testing",
|
||||||
|
"rootNamespace": "BracerLib.Utility.Testing",
|
||||||
|
"references": [
|
||||||
|
"GUID:27619889b8ba8c24980f49ee34dbb44a"
|
||||||
|
],
|
||||||
|
"includePlatforms": [],
|
||||||
|
"excludePlatforms": [],
|
||||||
|
"allowUnsafeCode": false,
|
||||||
|
"overrideReferences": true,
|
||||||
|
"precompiledReferences": [
|
||||||
|
"Moq.dll",
|
||||||
|
"nunit.framework.dll"
|
||||||
|
],
|
||||||
|
"autoReferenced": true,
|
||||||
|
"defineConstraints": [],
|
||||||
|
"versionDefines": [],
|
||||||
|
"noEngineReferences": false
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f1e562b6a035c2b4d9c0bd9fb0d2e18f
|
||||||
|
AssemblyDefinitionImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|
||||||
namespace BracerLib.Tests
|
namespace BracerLib.Utility.Testing
|
||||||
{
|
{
|
||||||
[ExecuteInEditMode]
|
[ExecuteInEditMode]
|
||||||
[ExcludeFromCoverage]
|
[ExcludeFromCoverage]
|
||||||
@@ -12,7 +12,7 @@ using UnityEngine.SceneManagement;
|
|||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
using Object = UnityEngine.Object;
|
using Object = UnityEngine.Object;
|
||||||
|
|
||||||
namespace BracerLib.Tests
|
namespace BracerLib.Utility.Testing
|
||||||
{
|
{
|
||||||
[ExcludeFromCodeCoverage, ExcludeFromCoverage]
|
[ExcludeFromCodeCoverage, ExcludeFromCoverage]
|
||||||
public class TestBase
|
public class TestBase
|
||||||
@@ -273,12 +273,12 @@ namespace BracerLib.Tests
|
|||||||
/// var obj = new SomeObject();
|
/// var obj = new SomeObject();
|
||||||
/// SetReflectedValue(obj, "item", 25);
|
/// SetReflectedValue(obj, "item", 25);
|
||||||
/// </code></example>
|
/// </code></example>
|
||||||
private protected void SetReflectedValue(object targetObject, string targetProperty, object targetValue)
|
protected internal void SetReflectedValue(object targetObject, string targetProperty, object targetValue)
|
||||||
{
|
{
|
||||||
SetReflectedValue(targetObject, targetObject.GetType(), targetProperty, targetValue);
|
SetReflectedValue(targetObject, targetObject.GetType(), targetProperty, targetValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
private protected void SetReflectedValues(object targetObject, params ValueTuple<string, object>[] properties)
|
protected internal void SetReflectedValues(object targetObject, params ValueTuple<string, object>[] properties)
|
||||||
{
|
{
|
||||||
var type = targetObject.GetType();
|
var type = targetObject.GetType();
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ namespace BracerLib.Tests
|
|||||||
///
|
///
|
||||||
/// SetObjectReference(c, "item", someOtherObj);
|
/// SetObjectReference(c, "item", someOtherObj);
|
||||||
/// </code></example>
|
/// </code></example>
|
||||||
private protected void SetObjectReference(Object targetObj, string targetValue, Object value)
|
protected internal void SetObjectReference(Object targetObj, string targetValue, Object value)
|
||||||
{
|
{
|
||||||
if (!objectPropertyCache.TryGetValue(targetObj, out var serializedObject))
|
if (!objectPropertyCache.TryGetValue(targetObj, out var serializedObject))
|
||||||
{
|
{
|
||||||
@@ -332,7 +332,7 @@ namespace BracerLib.Tests
|
|||||||
///
|
///
|
||||||
/// SetObjectReference(c, a);
|
/// SetObjectReference(c, a);
|
||||||
/// </code></example>
|
/// </code></example>
|
||||||
private protected void SetObjectReferences(Object targetObj, params ValueTuple<string, Object>[] properties)
|
protected internal void SetObjectReferences(Object targetObj, params ValueTuple<string, Object>[] properties)
|
||||||
{
|
{
|
||||||
for (var i = 0; i < properties.Length; i++)
|
for (var i = 0; i < properties.Length; i++)
|
||||||
SetObjectReference(targetObj, properties[i].Item1, properties[i].Item2);
|
SetObjectReference(targetObj, properties[i].Item1, properties[i].Item2);
|
||||||
@@ -143,6 +143,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.VisualScripting.DocCo
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.PlasticSCM.Editor.Entities", "Unity.PlasticSCM.Editor.Entities.csproj", "{433b063d-fdcf-942c-cacc-e0a12ecfab4c}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.PlasticSCM.Editor.Entities", "Unity.PlasticSCM.Editor.Entities.csproj", "{433b063d-fdcf-942c-cacc-e0a12ecfab4c}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BracerLib.Utility.Testing", "BracerLib.Utility.Testing.csproj", "{b503e9f1-fd6c-d2cf-1011-4ba7062b5641}"
|
||||||
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Rendering.LightTransport.Editor", "Unity.Rendering.LightTransport.Editor.csproj", "{d0c562bc-37b2-968f-c487-6f9c7907dfc9}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Rendering.LightTransport.Editor", "Unity.Rendering.LightTransport.Editor.csproj", "{d0c562bc-37b2-968f-c487-6f9c7907dfc9}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Collections.Editor", "Unity.Collections.Editor.csproj", "{7a399762-1357-59af-18c5-64fb51c178f2}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.Collections.Editor", "Unity.Collections.Editor.csproj", "{7a399762-1357-59af-18c5-64fb51c178f2}"
|
||||||
@@ -213,6 +215,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.InternalAPIEngineBrid
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.VisualScripting.DocCodeExamples", "Unity.VisualScripting.DocCodeExamples.Player.csproj", "{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.VisualScripting.DocCodeExamples", "Unity.VisualScripting.DocCodeExamples.Player.csproj", "{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BracerLib.Utility.Testing", "BracerLib.Utility.Testing.Player.csproj", "{151136ac-e31c-c81e-984b-669ed3714bc0}"
|
||||||
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.RenderPipelines.Universal.Config.Runtime", "Unity.RenderPipelines.Universal.Config.Runtime.Player.csproj", "{87b810fe-daa0-9aec-85dd-88cba86d95a4}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.RenderPipelines.Universal.Config.Runtime", "Unity.RenderPipelines.Universal.Config.Runtime.Player.csproj", "{87b810fe-daa0-9aec-85dd-88cba86d95a4}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary", "Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.Player.csproj", "{d4a0c4a1-1452-37dd-3d3d-772525ed81eb}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary", "Unity.RenderPipelines.ShaderGraph.ShaderGraphLibrary.Player.csproj", "{d4a0c4a1-1452-37dd-3d3d-772525ed81eb}"
|
||||||
@@ -430,6 +434,8 @@ Global
|
|||||||
{3acddcbe-f2e3-f9b3-384f-b00f037631c9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{3acddcbe-f2e3-f9b3-384f-b00f037631c9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{433b063d-fdcf-942c-cacc-e0a12ecfab4c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{433b063d-fdcf-942c-cacc-e0a12ecfab4c}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{433b063d-fdcf-942c-cacc-e0a12ecfab4c}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{433b063d-fdcf-942c-cacc-e0a12ecfab4c}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{b503e9f1-fd6c-d2cf-1011-4ba7062b5641}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{b503e9f1-fd6c-d2cf-1011-4ba7062b5641}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{d0c562bc-37b2-968f-c487-6f9c7907dfc9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{d0c562bc-37b2-968f-c487-6f9c7907dfc9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{d0c562bc-37b2-968f-c487-6f9c7907dfc9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{d0c562bc-37b2-968f-c487-6f9c7907dfc9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{7a399762-1357-59af-18c5-64fb51c178f2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{7a399762-1357-59af-18c5-64fb51c178f2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
@@ -500,6 +506,8 @@ Global
|
|||||||
{9af20a01-0715-5d01-32ca-c4bb2fd0bb7f}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{9af20a01-0715-5d01-32ca-c4bb2fd0bb7f}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{fdbabadb-0f6b-49cd-e87a-0ebbaf4d2d96}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{151136ac-e31c-c81e-984b-669ed3714bc0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{151136ac-e31c-c81e-984b-669ed3714bc0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{87b810fe-daa0-9aec-85dd-88cba86d95a4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{87b810fe-daa0-9aec-85dd-88cba86d95a4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{87b810fe-daa0-9aec-85dd-88cba86d95a4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{87b810fe-daa0-9aec-85dd-88cba86d95a4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{d4a0c4a1-1452-37dd-3d3d-772525ed81eb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{d4a0c4a1-1452-37dd-3d3d-772525ed81eb}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
|||||||
Reference in New Issue
Block a user