Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.TestTools;
- using NUnit.Framework;
- using System.Collections;
- /// wouldn't compile if uncommented, can't find a reference
- /// using SuperTestNameSpace;
- public class NewTestScript {
- [Test]
- public void TestAnotherStaticFunction()
- {
- int a = NewBehaviourScript(1);
- int b = 1;
- // Use the Assert class to test conditions.
- Assert.IsTrue(a == b);
- }
- }
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- namespace SuperTestNameSpace
- {
- public class NewBehaviourScript : MonoBehaviour
- {
- /// <summary>
- /// the simplest function in the world,
- /// that I can find to verify tests.
- /// </summary>
- public static int FunctionUnderTest(int a)
- {
- return a;
- }
- }
- }
Add Comment
Please, Sign In to add comment