mirror of
https://github.com/imperialsushi/gutterball-3.git
synced 2025-06-15 05:07:42 +00:00

Moving cam replay. Fixed the bugs. New Version 1.42 Moving cam replay. Fixed the bugs. New Version 1.42 Moving cam replay, Fixed the bugs.
34 lines
969 B
C#
34 lines
969 B
C#
using System;
|
|
using NUnit.Framework;
|
|
|
|
namespace UnityEngine.Analytics.Tests
|
|
{
|
|
public partial class AnalyticsEventTests
|
|
{
|
|
[Test]
|
|
public void CutsceneStart_CutsceneNameTest(
|
|
[Values("test_cutscene", "", null)] string name
|
|
)
|
|
{
|
|
if (string.IsNullOrEmpty(name))
|
|
{
|
|
Assert.Throws<ArgumentException>(() => AnalyticsEvent.CutsceneStart(name));
|
|
}
|
|
else
|
|
{
|
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.CutsceneStart(name));
|
|
EvaluateAnalyticsResult(m_Result);
|
|
}
|
|
}
|
|
|
|
[Test]
|
|
public void CutsceneStart_CustomDataTest()
|
|
{
|
|
var name = "test_cutscene";
|
|
|
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.CutsceneStart(name, m_CustomData));
|
|
EvaluateCustomData(m_CustomData);
|
|
EvaluateAnalyticsResult(m_Result);
|
|
}
|
|
}
|
|
}
|