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