Guest User

Untitled

a guest
Dec 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.TestTools;
  3. using NUnit.Framework;
  4. using System.Collections;
  5.  
  6. /// wouldn't compile if uncommented, can't find a reference
  7. /// using SuperTestNameSpace;
  8.  
  9. public class NewTestScript {
  10.  
  11. [Test]
  12. public void TestAnotherStaticFunction()
  13. {
  14. int a = NewBehaviourScript(1);
  15. int b = 1;
  16.  
  17. // Use the Assert class to test conditions.
  18. Assert.IsTrue(a == b);
  19. }
  20. }
  21.  
  22. using System.Collections;
  23. using System.Collections.Generic;
  24. using UnityEngine;
  25.  
  26. namespace SuperTestNameSpace
  27. {
  28. public class NewBehaviourScript : MonoBehaviour
  29. {
  30. /// <summary>
  31. /// the simplest function in the world,
  32. /// that I can find to verify tests.
  33. /// </summary>
  34. public static int FunctionUnderTest(int a)
  35. {
  36. return a;
  37. }
  38. }
  39. }
Add Comment
Please, Sign In to add comment