Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ProjectBackup/Unity/Testproject/Library/PackageCache/com.unity.2d.pixel-perfect@5.0.0/Tests/Editor/ObjectMenuCreationTests.cs
2022-11-12 13:10:03 +01:00

22 lines
659 B
C#

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