This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arsubsystems@4.../Tests/Editor/ARSubsystemEditorTests.cs

29 lines
752 B
C#
Raw Permalink Normal View History

using NUnit.Framework;
using System;
using UnityEngine.XR.ARSubsystems;
namespace UnityEditor.XR.ARSubsystems.Tests
{
[TestFixture]
class ARSubsystemEditorTests
{
[MenuItem("AR Foundation/Image Libraries/Clear data stores")]
static void ClearReferenceImageLibraryDataStores()
{
foreach (var library in XRReferenceImageLibrary.All())
{
library.ClearDataStore();
}
}
[Test]
public void CanRoundtripGuid()
{
var guid = Guid.NewGuid();
guid.Decompose(out var low, out var high);
var recomposedGuid = GuidUtil.Compose(low, high);
Assert.AreEqual(guid, recomposedGuid);
}
}
}