diff --git a/UOP1_Project/Assets/Plugins.meta b/UOP1_Project/Assets/Plugins.meta new file mode 100644 index 0000000000..222fff96c0 --- /dev/null +++ b/UOP1_Project/Assets/Plugins.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5cff7bc4cf9ea114db95fea7b6d9a59a +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock.meta new file mode 100644 index 0000000000..b9ec19e580 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 7b480c8e9bbd6af46802744a990349eb +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll new file mode 100644 index 0000000000..f8d4c80469 Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll.meta new file mode 100644 index 0000000000..cb83a59f9a --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Castle.Core.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: f1eef8188e3ffc44786525395540e33c +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.castle.core.4.4.1.txt b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.castle.core.4.4.1.txt new file mode 100644 index 0000000000..ebb9ac9f78 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.castle.core.4.4.1.txt @@ -0,0 +1,13 @@ +Copyright 2004-2016 Castle Project - http://www.castleproject.org/ + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.moq.4.14.7.txt b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.moq.4.14.7.txt new file mode 100644 index 0000000000..048dc06e2b --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.moq.4.14.7.txt @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2007, Clarius Consulting, Manas Technology Solutions, InSTEDD, +and Contributors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + * Neither the names of the copyright holders nor the names of its + contributors may be used to endorse or promote products derived from this + software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.runtime.compilerservices.unsafe.4.7.1.TXT b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.runtime.compilerservices.unsafe.4.7.1.TXT new file mode 100644 index 0000000000..984713a496 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.runtime.compilerservices.unsafe.4.7.1.TXT @@ -0,0 +1,23 @@ +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.threading.tasks.extensions.4.5.4.TXT b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.threading.tasks.extensions.4.5.4.TXT new file mode 100644 index 0000000000..984713a496 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/LICENSE.system.threading.tasks.extensions.4.5.4.TXT @@ -0,0 +1,23 @@ +The MIT License (MIT) + +Copyright (c) .NET Foundation and Contributors + +All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll new file mode 100644 index 0000000000..56f7df112c Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll.meta new file mode 100644 index 0000000000..796415e14e --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/Moq.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 336a5ac89109ad4498700e786e12f919 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll new file mode 100644 index 0000000000..02d9849738 Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll.meta new file mode 100644 index 0000000000..e012af1a61 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Runtime.CompilerServices.Unsafe.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 557ff745071d47f45bc54a9f8d5f46c7 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll new file mode 100644 index 0000000000..dfab23478a Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll.meta new file mode 100644 index 0000000000..33901fdc77 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/System.Threading.Tasks.Extensions.dll.meta @@ -0,0 +1,33 @@ +fileFormatVersion: 2 +guid: 701fb4a0f5d2ee443b0789a4506326cb +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 0 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + Any: + second: + enabled: 1 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + DefaultValueInitialized: true + - first: + Windows Store Apps: WindowsStoreApps + second: + enabled: 0 + settings: + CPU: AnyCPU + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip new file mode 100644 index 0000000000..5b7f0c4994 Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip.meta new file mode 100644 index 0000000000..7b590ba434 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/castle.core.4.4.1.zip.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1e5a1d826d5bb6f45bce2a7d8085db0e +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip new file mode 100644 index 0000000000..a89fc8310f Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip.meta new file mode 100644 index 0000000000..4d08ff99eb --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/moq.4.14.7.zip.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 398271d2a73dce341add37fdd5ac2df7 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip new file mode 100644 index 0000000000..e832db1aea Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip.meta new file mode 100644 index 0000000000..2217c7b788 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.runtime.compilerservices.unsafe.4.7.1.zip.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 833a45859d3d67845b18fbf623677d57 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip new file mode 100644 index 0000000000..a608bc53b8 Binary files /dev/null and b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip differ diff --git a/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip.meta b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip.meta new file mode 100644 index 0000000000..c3da560c57 --- /dev/null +++ b/UOP1_Project/Assets/Plugins/UnitTesting.Mock/system.threading.tasks.extensions.4.5.4.zip.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2c102cb6674fed94e9213f5d9754344f +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef b/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef new file mode 100644 index 0000000000..401c07c192 --- /dev/null +++ b/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef @@ -0,0 +1,18 @@ +{ + "name": "OpenProject1.Scripts", + "references": [ + "UnityEngine.UI", + "Unity.InputSystem", + "Cinemachine", + "OpenProject1.Settings.Input" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef.meta b/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef.meta new file mode 100644 index 0000000000..46607db836 --- /dev/null +++ b/UOP1_Project/Assets/Scripts/OpenProject1.Scripts.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 8bb8c2ba1532d9547b4148ea2adee61b +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef b/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef new file mode 100644 index 0000000000..78547eec4f --- /dev/null +++ b/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef @@ -0,0 +1,15 @@ +{ + "name": "OpenProject1.Settings.Input", + "references": [ + "Unity.InputSystem" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": false, + "precompiledReferences": [], + "autoReferenced": true, + "defineConstraints": [], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef.meta b/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef.meta new file mode 100644 index 0000000000..2f819573d6 --- /dev/null +++ b/UOP1_Project/Assets/Settings/Input/OpenProject1.Settings.Input.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 75de2b7d29021f747bd4b7652ab93dbe +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests.meta b/UOP1_Project/Assets/Tests.meta new file mode 100644 index 0000000000..cffa620c22 --- /dev/null +++ b/UOP1_Project/Assets/Tests.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 86c5f4ac4c8d70141bde11fe2849d44c +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/EditMode.meta b/UOP1_Project/Assets/Tests/EditMode.meta new file mode 100644 index 0000000000..ea6d5b4257 --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 39807bbcfce212644a41ee125c83c761 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs b/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs new file mode 100644 index 0000000000..854175afa5 --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs @@ -0,0 +1,34 @@ +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; +using UnityEngine; +using UnityEngine.Events; +using UnityEngine.TestTools; +using Moq; +using UnityEngine.UI; +using UnityEngine.InputSystem; + +namespace Tests +{ + public class InputReaderTest + { + private InputReader inputReader; + [SetUp] + public void SetUp(){ + inputReader = new InputReader(); + } + + // A Test behaves as an ordinary method + // [Test] + // public void InputAttack_CallsAttackFunction() + // { + // Mock action = new Mock(); + // action.Setup(a => a.Invoke()); + // inputReader.attackEvent += action.Object; + // // Can't mock a struct + // InputAction.CallbackContext context = new Mock(); + // inputReader.OnAttack(context); + // action.Verify(a => a.Invoke(), Times.Once()); + // } + } +} diff --git a/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs.meta b/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs.meta new file mode 100644 index 0000000000..00aae8a17b --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/InputReaderTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e1f8bd7d70edd78459d9987abb8e8082 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef b/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef new file mode 100644 index 0000000000..e341882c6e --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef @@ -0,0 +1,27 @@ +{ + "name": "OpenProject1.Tests.EditMode", + "references": [ + "UnityEngine.TestRunner", + "UnityEditor.TestRunner", + "OpenProject1.Scripts", + "UnityEngine.UI", + "OpenProject1.Settings.Input", + "Unity.InputSystem" + ], + "includePlatforms": [ + "Editor" + ], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll", + "Moq.dll" + ], + "autoReferenced": false, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef.meta b/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef.meta new file mode 100644 index 0000000000..69df037184 --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/OpenProject1.Tests.EditMode.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e0d8f5011f20e3b4eabc3e4a79ff7e37 +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs b/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs new file mode 100644 index 0000000000..edfdac9af5 --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; +using UnityEngine; +using UnityEngine.TestTools; + +namespace Tests +{ + public class EditModeTestingTest + { + // A Test behaves as an ordinary method + [Test] + public void TestingTestSimplePasses() + { + // Use the Assert class to test conditions + Assert.True(true); + } + + // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use + // `yield return null;` to skip a frame. + [UnityTest] + public IEnumerator TestingTestWithEnumeratorPasses() + { + // Use the Assert class to test conditions. + // Use yield to skip a frame. + Assert.True(true); + yield return null; + } + } +} diff --git a/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs.meta b/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs.meta new file mode 100644 index 0000000000..cd226e4943 --- /dev/null +++ b/UOP1_Project/Assets/Tests/EditMode/TestingTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: baf2b9f4c1877614abcffd1b7566c097 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/PlayMode.meta b/UOP1_Project/Assets/Tests/PlayMode.meta new file mode 100644 index 0000000000..1dbaaa1c9c --- /dev/null +++ b/UOP1_Project/Assets/Tests/PlayMode.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 2717c2e220634c945b5f31dd1f871115 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef b/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef new file mode 100644 index 0000000000..f10bd50a2e --- /dev/null +++ b/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef @@ -0,0 +1,22 @@ +{ + "name": "OpenProject1.Tests.PlayMode", + "references": [ + "UnityEngine.TestRunner", + "UnityEditor.TestRunner", + "OpenProject1.Scripts" + ], + "includePlatforms": [], + "excludePlatforms": [], + "allowUnsafeCode": false, + "overrideReferences": true, + "precompiledReferences": [ + "nunit.framework.dll", + "Moq.dll" + ], + "autoReferenced": false, + "defineConstraints": [ + "UNITY_INCLUDE_TESTS" + ], + "versionDefines": [], + "noEngineReferences": false +} \ No newline at end of file diff --git a/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef.meta b/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef.meta new file mode 100644 index 0000000000..f9e39dc743 --- /dev/null +++ b/UOP1_Project/Assets/Tests/PlayMode/OpenProject1.Tests.PlayMode.asmdef.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: dd01970c116b95f4ea46903040a5bcee +AssemblyDefinitionImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs b/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs new file mode 100644 index 0000000000..abcbe895e6 --- /dev/null +++ b/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs @@ -0,0 +1,30 @@ +using System.Collections; +using System.Collections.Generic; +using NUnit.Framework; +using UnityEngine; +using UnityEngine.TestTools; + +namespace Tests +{ + public class PlaymodeTestingTest + { + // A Test behaves as an ordinary method + [Test] + public void Playmode_TestingTestSimplePasses() + { + // Use the Assert class to test conditions + Assert.True(true); + } + + // A UnityTest behaves like a coroutine in Play Mode. In Edit Mode you can use + // `yield return null;` to skip a frame. + [UnityTest] + public IEnumerator Playmode_TestingTestWithEnumeratorPasses() + { + // Use the Assert class to test conditions. + // Use yield to skip a frame. + Assert.True(true); + yield return null; + } + } +} diff --git a/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs.meta b/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs.meta new file mode 100644 index 0000000000..71b40e760b --- /dev/null +++ b/UOP1_Project/Assets/Tests/PlayMode/TestingTest.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52f825179d109924da57336ae7c9cb5b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: