35 lines
964 B
C#
35 lines
964 B
C#
|
using System;
|
||
|
using NUnit.Framework;
|
||
|
|
||
|
namespace UnityEngine.Analytics.Tests
|
||
|
{
|
||
|
public partial class AnalyticsEventTests
|
||
|
{
|
||
|
[Test]
|
||
|
public void CutsceneSkip_CutsceneNameTest(
|
||
|
[Values("test_cutscene", "", null)] string name
|
||
|
)
|
||
|
{
|
||
|
if (string.IsNullOrEmpty(name))
|
||
|
{
|
||
|
Assert.Throws<ArgumentException>(() => AnalyticsEvent.CutsceneSkip(name));
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.CutsceneSkip(name));
|
||
|
EvaluateAnalyticsResult(m_Result);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
[Test]
|
||
|
public void CutsceneSkip_CustomDataTest()
|
||
|
{
|
||
|
var name = "test_cutscene";
|
||
|
|
||
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.CutsceneSkip(name, m_CustomData));
|
||
|
EvaluateCustomData(m_CustomData);
|
||
|
EvaluateAnalyticsResult(m_Result);
|
||
|
}
|
||
|
}
|
||
|
}
|