Rasagar/Library/PackageCache/com.unity.cinemachine/Tests/Editor/ScriptableObjectUtilityTests.cs
2024-08-26 23:07:20 +03:00

25 lines
812 B
C#

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));
}
}
}