Firstborn/Library/PackageCache/com.unity.cinemachine@2.8.9/Tests/Editor/ScriptableObjectUtilityTest...

25 lines
812 B
C#
Raw Normal View History

2023-03-28 13:24:16 -04:00
using NUnit.Framework;
using Cinemachine.Editor;
using System.IO;
namespace Tests.Editor
{
[TestFixture]
public class ScriptableObjectUtilityTests
{
[Test]
public void CinemachineInstallPathIsValid()
{
var pathToCmLogo = Path.Combine(ScriptableObjectUtility.CinemachineInstallPath, "Editor/EditorResources/cm_logo_sm.png");
Assert.That(File.Exists(pathToCmLogo));
}
[Test]
public void CinemachineInstallRelativePathIsValid()
{
var relativePathToCmLogo = Path.Combine(ScriptableObjectUtility.CinemachineRealativeInstallPath, "Editor/EditorResources/cm_logo_sm.png");
var pathToCmLogo = Path.GetFullPath(relativePathToCmLogo);
Assert.That(File.Exists(pathToCmLogo));
}
}
}