Skip to main content
Version: 20 Mar 2024

MLAudioOutputPluginNativeBindingsEditModeTests.cs

Source code

using NUnit.Framework;
using System.Reflection;

namespace UnitySDKEditorTests
{
public partial class MLAudioPlayback : NativeBindingsTests
{
[SetUp]
public void SetupNativeBindings()
{
var apiType = typeof(UnityEngine.XR.MagicLeap.MLAudioPlayback);
nativeBindings = apiType.GetNestedType("NativeBindings", BindingFlags.Public);
}

[Test]
public void NativeBinding_CreateAudioOutput_Exists()
{
AssertThatMethodExists("CreateAudioOutput");
}

[Test]
public void NativeBinding_DestroyAudioOutput_Exists()
{
AssertThatMethodExists("DestroyAudioOutput");
}

[Test]
public void NativeBinding_OnUnityAudio_Exists()
{
AssertThatMethodExists("OnUnityAudio");
}

[Test]
public void NativeBinding_CreateOutputBuffer_Exists()
{
AssertThatMethodExists("CreateOutputBuffer");
}
}
}