testss
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@@ -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.");
|
||||
}
|
||||
}
|
||||
}
|
@@ -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": []
|
||||
}
|
Reference in New Issue
Block a user