This commit is contained in:
2021-06-13 10:28:03 +02:00
parent eb70603c85
commit df2d24cbd3
7487 changed files with 943244 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NUnit.Framework;
using UnityEngine.TestTools;
using UnityEditor;
namespace UnityEngine.U2D
{
internal class ObjectMenuCreationTests
{
[Test]
public void ExecuteMenuCommandCreatesGameObjectWithPixelPerfectCamera()
{
var transformCount = Object.FindObjectsOfType<Transform>();
EditorApplication.ExecuteMenuItem("GameObject/2D Object/Pixel Perfect Camera");
LogAssert.NoUnexpectedReceived();
Assert.True(Object.FindObjectsOfType<Transform>().Length > transformCount.Length);
}
}
}

View File

@@ -0,0 +1,13 @@
using NUnit.Framework;
namespace UnityEngine.U2D
{
internal class PixelPerfectCameraEditorTests
{
[Test]
public void PlaceHolderTest()
{
Assert.Pass("This is a placeholder to ensure we have at least one editor test.");
}
}
}

View File

@@ -0,0 +1,22 @@
{
"name": "Unity.2D.PixelPerfect.Editor.Tests",
"references": [
"GUID:2543b18169f9e4044a266a0bf35fe4cf",
"GUID:27619889b8ba8c24980f49ee34dbb44a",
"GUID:0acc523941302664db1f4e527237feb3"
],
"includePlatforms": [
"Editor"
],
"excludePlatforms": [],
"allowUnsafeCode": false,
"overrideReferences": true,
"precompiledReferences": [
"nunit.framework.dll"
],
"autoReferenced": false,
"defineConstraints": [
"UNITY_INCLUDE_TESTS"
],
"versionDefines": []
}