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);
}
}
}