标签:unity3d unity unity3d培训 unity3d极致学院
using System;
using System.Collections.Generic;
using UnityEngine;
[IntegrationTest.DynamicTestAttribute("ExampleIntegrationTests")]//绑定的场景名
// [IntegrationTest.Ignore]
[IntegrationTest.ExpectExceptions(false, typeof(ArgumentException))]
[IntegrationTest.SucceedWithAssertions]
[IntegrationTest.TimeoutAttribute(1)]
[IntegrationTest.ExcludePlatformAttribute(RuntimePlatform.Android, RuntimePlatform.LinuxPlayer)]
public class DynamicIntegrationTest : MonoBehaviour
{
public void Start()
{
IntegrationTest.Pass(gameObject);
}
}
[align=left][color=rgb(0,0,0)][backcolor=rgb(254,254,242)][/backcolor][/color][/align]
[IntegrationTest.DynamicTestAttribute("ExampleIntegrationTests")]
[IntegrationTest.ExcludePlatformAttribute(RuntimePlatform.Android, RuntimePlatform.LinuxPlayer)]
public class Test1 : MonoBehaviour
{
public void Start()
{
IntegrationTest.Assert(gameObject);
}
}
[IntegrationTest.DynamicTestAttribute("ExampleIntegrationTests")]
[IntegrationTest.ExcludePlatformAttribute(RuntimePlatform.Android, RuntimePlatform.LinuxPlayer)]
public class Test2 : MonoBehaviour
{
public void Start()
{
IntegrationTest.Assert(gameObject);
}
}
标签:unity3d unity unity3d培训 unity3d极致学院
原文地址:http://blog.csdn.net/sauwque/article/details/44402081