您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

27 行
613 B

using System.Linq;
using NUnit.Framework;
using UnityEngine;
using UnityEditor.Graphing;
namespace UnityEditor.ShaderGraph.UnitTests
{
[TestFixture]
public class MaterialGraphTests
{
[OneTimeSetUp]
public void RunBeforeAnyTests()
{
Debug.unityLogger.logHandler = new ConsoleLogHandler();
}
[Test]
public void TestCreateMaterialGraph()
{
var graph = new ShaderGraph.MaterialGraph();
Assert.IsNotNull(graph);
Assert.AreEqual(0, graph.GetNodes<AbstractMaterialNode>().Count());
}
}
}