From 95571ec31700af346ec7afbde8f7777c7646f861 Mon Sep 17 00:00:00 2001 From: Joni Savolainen Date: Sun, 28 Aug 2022 10:22:52 +0300 Subject: [PATCH] feat: create new asmdef for UIComponents.Testing BREAKING CHANGE: Usage of UIComponents.Testing now requires including an assembly definition reference. --- .../UIComponents.Tests.Addressables.asmdef | 3 ++- .../Editor/UIComponents.Tests.Editor.asmdef | 3 ++- .../UIComponents.Tests/UIComponents.Tests.asmdef | 3 ++- Assets/UIComponents/{Core => }/Testing.meta | 0 .../UIComponents/{Core => }/Testing/TestBed.cs | 0 .../{Core => }/Testing/TestBed.cs.meta | 0 .../{Core => }/Testing/TestBedBuilder.cs | 3 +-- .../{Core => }/Testing/TestBedBuilder.cs.meta | 0 .../Testing/TestBedTimeoutException.cs | 0 .../Testing/TestBedTimeoutException.cs.meta | 0 .../Testing/UIComponents.Testing.asmdef | 16 ++++++++++++++++ .../Testing/UIComponents.Testing.asmdef.meta | 7 +++++++ 12 files changed, 30 insertions(+), 5 deletions(-) rename Assets/UIComponents/{Core => }/Testing.meta (100%) rename Assets/UIComponents/{Core => }/Testing/TestBed.cs (100%) rename Assets/UIComponents/{Core => }/Testing/TestBed.cs.meta (100%) rename Assets/UIComponents/{Core => }/Testing/TestBedBuilder.cs (98%) rename Assets/UIComponents/{Core => }/Testing/TestBedBuilder.cs.meta (100%) rename Assets/UIComponents/{Core => }/Testing/TestBedTimeoutException.cs (100%) rename Assets/UIComponents/{Core => }/Testing/TestBedTimeoutException.cs.meta (100%) create mode 100644 Assets/UIComponents/Testing/UIComponents.Testing.asmdef create mode 100644 Assets/UIComponents/Testing/UIComponents.Testing.asmdef.meta diff --git a/Assets/UIComponents.Tests/Addressables/UIComponents.Tests.Addressables.asmdef b/Assets/UIComponents.Tests/Addressables/UIComponents.Tests.Addressables.asmdef index 54c812ff..037cc22c 100644 --- a/Assets/UIComponents.Tests/Addressables/UIComponents.Tests.Addressables.asmdef +++ b/Assets/UIComponents.Tests/Addressables/UIComponents.Tests.Addressables.asmdef @@ -8,7 +8,8 @@ "UIComponents.Tests", "UIComponents.Addressables", "Unity.Addressables", - "Unity.ResourceManager" + "Unity.ResourceManager", + "UIComponents.Testing" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Assets/UIComponents.Tests/Editor/UIComponents.Tests.Editor.asmdef b/Assets/UIComponents.Tests/Editor/UIComponents.Tests.Editor.asmdef index 00376e7c..ed156996 100644 --- a/Assets/UIComponents.Tests/Editor/UIComponents.Tests.Editor.asmdef +++ b/Assets/UIComponents.Tests/Editor/UIComponents.Tests.Editor.asmdef @@ -5,7 +5,8 @@ "UnityEngine.TestRunner", "UnityEditor.TestRunner", "UIComponents", - "UIComponents.Tests" + "UIComponents.Tests", + "UIComponents.Testing" ], "includePlatforms": [ "Editor" diff --git a/Assets/UIComponents.Tests/UIComponents.Tests.asmdef b/Assets/UIComponents.Tests/UIComponents.Tests.asmdef index 94173dbd..a143ee2c 100644 --- a/Assets/UIComponents.Tests/UIComponents.Tests.asmdef +++ b/Assets/UIComponents.Tests/UIComponents.Tests.asmdef @@ -4,7 +4,8 @@ "references": [ "UnityEngine.TestRunner", "UnityEditor.TestRunner", - "UIComponents" + "UIComponents", + "UIComponents.Testing" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Assets/UIComponents/Core/Testing.meta b/Assets/UIComponents/Testing.meta similarity index 100% rename from Assets/UIComponents/Core/Testing.meta rename to Assets/UIComponents/Testing.meta diff --git a/Assets/UIComponents/Core/Testing/TestBed.cs b/Assets/UIComponents/Testing/TestBed.cs similarity index 100% rename from Assets/UIComponents/Core/Testing/TestBed.cs rename to Assets/UIComponents/Testing/TestBed.cs diff --git a/Assets/UIComponents/Core/Testing/TestBed.cs.meta b/Assets/UIComponents/Testing/TestBed.cs.meta similarity index 100% rename from Assets/UIComponents/Core/Testing/TestBed.cs.meta rename to Assets/UIComponents/Testing/TestBed.cs.meta diff --git a/Assets/UIComponents/Core/Testing/TestBedBuilder.cs b/Assets/UIComponents/Testing/TestBedBuilder.cs similarity index 98% rename from Assets/UIComponents/Core/Testing/TestBedBuilder.cs rename to Assets/UIComponents/Testing/TestBedBuilder.cs index af8a4bda..7b5fd080 100644 --- a/Assets/UIComponents/Core/Testing/TestBedBuilder.cs +++ b/Assets/UIComponents/Testing/TestBedBuilder.cs @@ -8,8 +8,7 @@ namespace UIComponents.Testing public class TestBedBuilder { private readonly TestBed _testBed; - private bool _built; - + internal TestBedBuilder() { _testBed = new TestBed(); diff --git a/Assets/UIComponents/Core/Testing/TestBedBuilder.cs.meta b/Assets/UIComponents/Testing/TestBedBuilder.cs.meta similarity index 100% rename from Assets/UIComponents/Core/Testing/TestBedBuilder.cs.meta rename to Assets/UIComponents/Testing/TestBedBuilder.cs.meta diff --git a/Assets/UIComponents/Core/Testing/TestBedTimeoutException.cs b/Assets/UIComponents/Testing/TestBedTimeoutException.cs similarity index 100% rename from Assets/UIComponents/Core/Testing/TestBedTimeoutException.cs rename to Assets/UIComponents/Testing/TestBedTimeoutException.cs diff --git a/Assets/UIComponents/Core/Testing/TestBedTimeoutException.cs.meta b/Assets/UIComponents/Testing/TestBedTimeoutException.cs.meta similarity index 100% rename from Assets/UIComponents/Core/Testing/TestBedTimeoutException.cs.meta rename to Assets/UIComponents/Testing/TestBedTimeoutException.cs.meta diff --git a/Assets/UIComponents/Testing/UIComponents.Testing.asmdef b/Assets/UIComponents/Testing/UIComponents.Testing.asmdef new file mode 100644 index 00000000..0e219164 --- /dev/null +++ b/Assets/UIComponents/Testing/UIComponents.Testing.asmdef @@ -0,0 +1,16 @@ +{ + "name": "UIComponents.Testing", + "rootNamespace": "UIComponents", + "references": [ + "GUID:d593635333b4cae48bac5b5f0b596e90" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/Assets/UIComponents/Testing/UIComponents.Testing.asmdef.meta b/Assets/UIComponents/Testing/UIComponents.Testing.asmdef.meta new file mode 100644 index 00000000..4fe5b26e --- /dev/null +++ b/Assets/UIComponents/Testing/UIComponents.Testing.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 82430d129707d684194a4b7a99734d46 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: