27 lines
650 B
C#
27 lines
650 B
C#
using UnityEditor;
|
|
using NUnit.Framework;
|
|
using UnityEditor.Rendering.Universal;
|
|
|
|
namespace UnityEngine.Rendering.Tests
|
|
{
|
|
class ScriptTemplatesTests
|
|
{
|
|
string[] paths = new string[]
|
|
{
|
|
$"{ScriptTemplates.ScriptTemplatePath}UnlitURP.txt",
|
|
$"{ScriptTemplates.ScriptTemplatePath}ScriptableRendererFeature.txt"
|
|
};
|
|
|
|
[Test]
|
|
public void ScriptTemplatesExist()
|
|
{
|
|
for (int i = 0; i < paths.Length; i++)
|
|
{
|
|
var asset = AssetDatabase.LoadAssetAtPath<TextAsset>(paths[i]);
|
|
|
|
Assert.NotNull(asset);
|
|
}
|
|
}
|
|
}
|
|
}
|