Rasagar/Library/PackageCache/com.unity.cinemachine/Tests/Editor/ScriptableObjectUtilityTests.cs

25 lines
812 B
C#
Raw Normal View History

2024-08-26 13:07:20 -07: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));
}
}
}