Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using UnityEngine.TestTools;
- using NUnit.Framework;
- using System.Collections;
- public class NewPlayModeTest {
- [Test]
- [UnityPlatform(include = new[] { RuntimePlatform.WSAPlayerARM, RuntimePlatform.WSAPlayerX64, RuntimePlatform.WSAPlayerX86, RuntimePlatform.OSXPlayer, RuntimePlatform.Android })]
- public void NewPlayModeTestSimplePasses() {
- // Use the Assert class to test conditions.
- }
- // A UnityTest behaves like a coroutine in PlayMode
- // and allows you to yield null to skip a frame in EditMode
- [UnityTest]
- [UnityPlatform(include = new[] { RuntimePlatform.WSAPlayerARM, RuntimePlatform.WSAPlayerX64, RuntimePlatform.WSAPlayerX86, RuntimePlatform.OSXPlayer, RuntimePlatform.Android })]
- public IEnumerator NewPlayModeTestWithEnumeratorPasses() {
- // Use the Assert class to test conditions.
- // yield to skip a frame
- yield return null;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement