ScriptableObjectUtilityTests.cs 812 B

12345678910111213141516171819202122232425
  1. using NUnit.Framework;
  2. using Cinemachine.Editor;
  3. using System.IO;
  4. namespace Tests.Editor
  5. {
  6. [TestFixture]
  7. public class ScriptableObjectUtilityTests
  8. {
  9. [Test]
  10. public void CinemachineInstallPathIsValid()
  11. {
  12. var pathToCmLogo = Path.Combine(ScriptableObjectUtility.CinemachineInstallPath, "Editor/EditorResources/cm_logo_sm.png");
  13. Assert.That(File.Exists(pathToCmLogo));
  14. }
  15. [Test]
  16. public void CinemachineInstallRelativePathIsValid()
  17. {
  18. var relativePathToCmLogo = Path.Combine(ScriptableObjectUtility.CinemachineRealativeInstallPath, "Editor/EditorResources/cm_logo_sm.png");
  19. var pathToCmLogo = Path.GetFullPath(relativePathToCmLogo);
  20. Assert.That(File.Exists(pathToCmLogo));
  21. }
  22. }
  23. }