Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEditor;
- using NUnit.Framework;
- public class NewEditorTest {
- [Test]
- public void EditorTest()
- {
- //Arrange
- var gameObject = new GameObject();
- //Act
- //Try to rename the GameObject
- var newGameObjectName = "My game object";
- gameObject.name = newGameObjectName;
- //Assert
- //The object has a new name
- Assert.AreEqual(newGameObjectName, gameObject.name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement