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
1 KiB
C#
34 lines
1 KiB
C#
using System;
|
|
using NUnit.Framework;
|
|
|
|
namespace UnityEngine.Analytics.Tests
|
|
{
|
|
public partial class AnalyticsEventTests
|
|
{
|
|
[Test]
|
|
public void AchievementUnlocked_AchievementIdTest(
|
|
[Values("unit_tester", "", null)] string achievementId
|
|
)
|
|
{
|
|
if (string.IsNullOrEmpty(achievementId))
|
|
{
|
|
Assert.Throws<ArgumentException>(() => AnalyticsEvent.AchievementUnlocked(achievementId));
|
|
}
|
|
else
|
|
{
|
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.AchievementUnlocked(achievementId));
|
|
EvaluateAnalyticsResult(m_Result);
|
|
}
|
|
}
|
|
|
|
[Test]
|
|
public void AchievementUnlocked_CustomDataTest()
|
|
{
|
|
var achievementId = "unit_tester";
|
|
|
|
Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.AchievementUnlocked(achievementId, m_CustomData));
|
|
EvaluateCustomData(m_CustomData);
|
|
EvaluateAnalyticsResult(m_Result);
|
|
}
|
|
}
|
|
}
|