浏览代码

Add Play Mode Test to make katana happy.

/main
Tim Cooper 7 年前
当前提交
feeefb50
共有 6 个文件被更改,包括 53 次插入0 次删除
  1. 8
      TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests.meta
  2. 21
      TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/NewTestScript.cs
  3. 11
      TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/NewTestScript.cs.meta
  4. 6
      TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/PlayModeTests.asmdef
  5. 7
      TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/PlayModeTests.asmdef.meta

8
TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests.meta


fileFormatVersion: 2
guid: c8e0de851db46554abf9dad715d23d3e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

21
TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/NewTestScript.cs


using UnityEngine;
using UnityEngine.TestTools;
using NUnit.Framework;
using System.Collections;
public class NewTestScript {
[Test]
public void NewTestScriptSimplePasses() {
// 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]
public IEnumerator NewTestScriptWithEnumeratorPasses() {
// Use the Assert class to test conditions.
// yield to skip a frame
yield return null;
}
}

11
TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/NewTestScript.cs.meta


fileFormatVersion: 2
guid: 7a6d45fa38de27845a764df7e9186fec
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

6
TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/PlayModeTests.asmdef


{
"name": "PlayModeTests",
"optionalUnityReferences": [
"TestAssemblies"
]
}

7
TestProjects/LWRP/GraphicsTests/Assets/PlayModeTests/PlayModeTests.asmdef.meta


fileFormatVersion: 2
guid: 36098cb7ccacfd3488a95b79562a0ae0
AssemblyDefinitionImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存