arenos-nexus/Arenos Nexus/Library/PackageCache/com.unity.render-pipelines.universal@0d0962426023/Tests/Editor/ScriptTemplateTests.cs

27 lines
650 B
C#
Raw Normal View History

2025-09-25 22:01:28 +02:00
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);
}
}
}
}