Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEditor;
  3. using NUnit.Framework;
  4.  
  5. public class NewEditorTest {
  6.  
  7. [Test]
  8. public void EditorTest()
  9. {
  10. //Arrange
  11. var gameObject = new GameObject();
  12.  
  13. //Act
  14. //Try to rename the GameObject
  15. var newGameObjectName = "My game object";
  16. gameObject.name = newGameObjectName;
  17.  
  18. //Assert
  19. //The object has a new name
  20. Assert.AreEqual(newGameObjectName, gameObject.name);
  21. }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement