Advertisement
Guest User

Untitled

a guest
Aug 29th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.89 KB | None | 0 0
  1. using UnityEngine;
  2. using UnityEngine.TestTools;
  3. using NUnit.Framework;
  4. using System.Collections;
  5.  
  6. public class NewPlayModeTest {
  7.  
  8.     [Test]
  9.     [UnityPlatform(include = new[] { RuntimePlatform.WSAPlayerARM, RuntimePlatform.WSAPlayerX64, RuntimePlatform.WSAPlayerX86, RuntimePlatform.OSXPlayer, RuntimePlatform.Android })]
  10.     public void NewPlayModeTestSimplePasses() {
  11.         // Use the Assert class to test conditions.
  12.     }
  13.  
  14.     // A UnityTest behaves like a coroutine in PlayMode
  15.     // and allows you to yield null to skip a frame in EditMode
  16.     [UnityTest]
  17.     [UnityPlatform(include = new[] { RuntimePlatform.WSAPlayerARM, RuntimePlatform.WSAPlayerX64, RuntimePlatform.WSAPlayerX86, RuntimePlatform.OSXPlayer, RuntimePlatform.Android })]
  18.     public IEnumerator NewPlayModeTestWithEnumeratorPasses() {
  19.         // Use the Assert class to test conditions.
  20.         // yield to skip a frame
  21.         yield return null;
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement